]>
Commit | Line | Data |
---|---|---|
cd3e40b8 SL |
1 | #!/bin/bash |
2 | # Mass upload | |
3 | ||
4 | set -e | |
5 | BASE_DIR=$(pwd) | |
6 | ||
7 | if test ! -f LIST_UPLOAD.txt; then | |
d1b7e9a8 SL |
8 | echo "Could not find LIST_UPLOAD.txt" |
9 | echo "Run:" | |
10 | echo "wget https://release.debian.org/britney/excuses.yaml" | |
11 | echo "python3 dev/rust-excuses-source-upload.py > LIST_UPLOAD.txt" | |
cd3e40b8 SL |
12 | exit 1 |
13 | fi | |
14 | ||
15 | for f in $(awk '{print $1}' LIST_UPLOAD.txt|sed -e "s|rust-||g"); do | |
16 | h=$(head -1 src/$f/debian/changelog) | |
17 | if echo $h|grep UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; then | |
01445826 | 18 | echo "skip $f (pending upload)" |
cd3e40b8 SL |
19 | continue |
20 | else | |
21 | git branch -D pending-$f || true | |
22 | V=$(dpkg-parsechangelog --file src/$f/debian/changelog|grep Version|awk '{print $2}'|cut -d- -f1) | |
23 | PKG=$(grep Upstream-Name src/$f/debian/copyright|awk '{print $2}') | |
24 | REALVER=$V ./update.sh $PKG | |
62612718 | 25 | cd src/$f && sed -i -e "s| \* Package| * Source upload\n * Package|" debian/changelog && cd - |
cd3e40b8 SL |
26 | git commit -m" $f: source upload" src/$f |
27 | RERELEASE=1 ./release.sh $PKG | |
28 | git checkout master && git merge origin/pending-$f | |
29 | git branch -d pending-$f | |
ddc1880f | 30 | git push origin master :pending-$f |
cd3e40b8 SL |
31 | fi |
32 | cd $BASE_DIR | |
33 | done |