RelUpload: rc tarballs are counted from rc0
[git.git] / RelUpload
blob0e3435215a02f4774afb21367a863442e4076344
1 #!/bin/sh
3 kup=../kup/kup
5 for s in git-*.sig
6 do
7 test -f "$s" &&
8 v=$(expr "$s" : '^git.*-\([^-]*\)\.tar\.sig$') &&
9 case "$v" in
10 *.rc[0-9]*)
11 dest=/pub/software/scm/git/testing/ ;;
13 dest=/pub/software/scm/git/ ;;
14 esac &&
16 $kup --host kup.kernel.org put "${s%.sig}.gz" "$s" "$dest" || exit
17 done
19 pw=$(sed -ne '/code.google.com login jch2355@gmail.com/s/.* password //p' $HOME/.netrc)
21 for s in git-*.sign
23 test -f "$s" &&
24 v=$(expr "$s" : '^git-\(.*\)\.sign$') &&
26 googlecode_upload.py -p git-core -u jch2355@gmail.com -w "$pw" \
27 -s "Git $v" git-$v.tar.gz &&
28 googlecode_upload.py -p git-core -u jch2355@gmail.com -w "$pw" \
29 -s "Git $v documentation pages (HTML)" git-htmldocs-$v.tar.gz &&
30 googlecode_upload.py -p git-core -u jch2355@gmail.com -w "$pw" \
31 -s "Git $v documentation pages (man)" git-manpages-$v.tar.gz &&
32 cat git-$v.sign || break
33 done