More dev scripts
Ximin Luo
5 years ago
0 | 0 |
#!/bin/bash
|
1 | 1 |
# Filter list of crates by whether they're a binary crate.
|
|
2 |
set -e
|
2 | 3 |
|
3 | 4 |
while read crate; do
|
4 | 5 |
if debcargo extract "$crate" >/dev/null 2>/dev/null; then
|
0 | 0 |
#!/bin/bash
|
1 | 1 |
# Filter list of crates by whether they're not in Debian.
|
2 | 2 |
# You need to have an up-to-date APT cache for Debian unstable.
|
|
3 |
set -e
|
3 | 4 |
|
4 | 5 |
while read crate; do
|
5 | 6 |
pkg="${crate//_/-}"
|
0 | 0 |
#!/bin/sh
|
|
1 |
# List packages that are UNRELEASED and also not pending.
|
|
2 |
|
1 | 3 |
set -e
|
|
4 |
|
2 | 5 |
git fetch origin --prune
|
3 | 6 |
git grep -l UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO -- src/*/debian/changelog | cut -d/ -f2 | while read pkg; do
|
4 | 7 |
if ! git show-ref --quiet --verify "refs/remotes/origin/pending-$pkg"; then
|
|
0 |
#!/bin/bash
|
|
1 |
# List pending branches that we have, but that are not in NEW.
|
|
2 |
# You might find it also useful to pipe the output of this into filter-in-debian.sh
|
|
3 |
set -e
|
|
4 |
|
|
5 |
git fetch origin --prune
|
|
6 |
comm -13 \
|
|
7 |
<(curl -s https://ftp-master.debian.org/new.html | \
|
|
8 |
sed -n -e '1,/<td class="package">'"$1"'<\/td>/p' | \
|
|
9 |
grep '<td class="package">rust-' | \
|
|
10 |
sed -nre 's/.*\brust-([-A-Za-z0-9]+)\b.*/\1/gp' | \
|
|
11 |
sort) \
|
|
12 |
<(git branch --list -r 'origin/pending-*' --format='%(refname)' | \
|
|
13 |
sed -e 's,refs/remotes/origin/pending-,,g' | \
|
|
14 |
sort)
|