Codebase list rust-libslirp / 2893b1b
dev: split list-pending-not-NEW into more reusable components Ximin Luo 2 years ago
5 changed file(s) with 35 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/bash
1 # Filter package-versions of our rust packages, that are not in NEW.
2
3 comm -13 \
4 <(curl -s https://ftp-master.debian.org/new.html \
5 | sed -nre 's,.*<a href="new/rust-([a-zA-Z0-9-]*)_([.a-zA-Z0-9-]*)\.html">.*,\1 \2,gp' \
6 | sort) \
7 -
0 #!/bin/sh
1 dev/list-pending.sh | dev/filter-not-NEW.html | dev/filter-package-in-debian.sh
+0
-36
dev/list-pending-not-NEW.sh less more
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-package-in-debian.sh
3 set -e
4
5 if [ "${PENDING_LOCAL}" = 1 ]; then
6
7 git fetch origin --prune
8 comm -13 \
9 <(curl -s https://ftp-master.debian.org/new.html | \
10 grep '<td class="package">rust-' | \
11 sed -nre 's/.*\brust-([-A-Za-z0-9.]+)\b.*/\1/gp' | \
12 sort) \
13 <(git branch --list 'pending-*' --format='%(refname)' | \
14 sed -e 's,refs/heads/pending-,,g' | \
15 sort) | \
16 while read x; do
17 echo $x $(git show "pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion)
18 done
19
20 else
21
22 git fetch origin --prune
23 comm -13 \
24 <(curl -s https://ftp-master.debian.org/new.html | \
25 grep '<td class="package">rust-' | \
26 sed -nre 's/.*\brust-([-A-Za-z0-9.]+)\b.*/\1/gp' | \
27 sort) \
28 <(git branch --list -r 'origin/pending-*' --format='%(refname)' | \
29 sed -e 's,refs/remotes/origin/pending-,,g' | \
30 sort) | \
31 while read x; do
32 echo $x $(git show "origin/pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion)
33 done
34
35 fi
0 #!/bin/bash
1 # List pending branches that we have.
2 # You may want to run dev/sync-pending-branches.sh first.
3 # You may find it useful to pipe the output of this into filter-package-in-debian.sh
4 #
5 set -e
6
7 git fetch origin --prune
8
9 if [ "${PENDING_LOCAL}" = 1 ]; then
10 git branch --list 'pending-*' --format='%(refname)' \
11 | sed -e 's,refs/heads/pending-,,g' \
12 | sort \
13 | while read x; do
14 echo $x $(git show "pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion)
15 done
16 else
17 git branch --list -r 'origin/pending-*' --format='%(refname)' \
18 | sed -e 's,refs/remotes/origin/pending-,,g' \
19 | sort \
20 | while read x; do
21 echo $x $(git show "origin/pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion)
22 done
23 fi
00 #!/bin/bash
11 set -e
22
3 packages=( $(dev/list-pending-not-NEW.sh | dev/filter-package-in-debian.sh | grep -v ' 0$' | cut '-d ' -f1) )
3 packages=( $(dev/list-pending.sh | dev/filter-package-in-debian.sh | grep -v ' 0$' | cut '-d ' -f1) )
44
55 if [ -z "$packages" ]; then exit 0; fi
66 set -x