What's cooking (2014/11 #04)
[git.git] / RelUpload
blobab00f3ffe5b715bb0bcac12aa62185abea75ee03
1 #!/bin/sh
3 kup=../kup/kup
5 # LOOK HERE!!!
6 : <<'EOF'
8 pw=$(sed -ne '/code.google.com login jch2355@gmail.com/s/.* password //p' $HOME/.netrc) &&
9 for s in git-*.sign
11 test -f "$s" &&
12 v=$(expr "$s" : '^git-\(.*\)\.sign$') &&
14 googlecode_upload.py -p git-core -u jch2355@gmail.com -w "$pw" \
15 -s "Git $v" git-$v.tar.gz &&
16 googlecode_upload.py -p git-core -u jch2355@gmail.com -w "$pw" \
17 -s "Git $v documentation pages (HTML)" git-htmldocs-$v.tar.gz &&
18 googlecode_upload.py -p git-core -u jch2355@gmail.com -w "$pw" \
19 -s "Git $v documentation pages (man)" git-manpages-$v.tar.gz &&
20 cat git-$v.sign || break
21 done
22 EOF
24 for s in git-*.sig
26 test -f "$s" &&
27 v=$(expr "$s" : '^git.*-\([^-]*\)\.tar\.sig$') &&
28 case "$v" in
29 *.rc[0-9]*)
30 dest=/pub/software/scm/git/testing/ ;;
32 dest=/pub/software/scm/git/ ;;
33 esac &&
35 $kup --host kup.kernel.org put "${s%.sig}.gz" "$s" "$dest" || exit
36 done