3 usage
='USAGE: gcode-upload.sh VERSION USERNAME GCODE-PASSWORD
5 The gcode password is available from http://code.google.com/hosting/settings;
6 it is *not* your google account password.
14 if test ! -f common
/googlecode_upload.py
; then
15 echo "download googlecode_upload.py from"
16 echo " http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py"
17 echo "and place it in common/"
27 test -f "dist/$file" && echo "dist/$file"
28 test -f "master/dist/$file" && echo "master/dist/$file"
29 test -f "slave/dist/$file" && echo "slave/dist/$file"
30 test -f "$file" && echo "$file"
36 if test "`echo $file | sed 's/.*\.asc/Signature/'`" = "Signature"; then
37 labels
="$labels,Signature"
39 if test "`echo $file | sed 's/.*\.tar.gz.*/Tar/'`" = "Tar"; then
40 labels
="$labels,OpSys-POSIX"
42 labels
="$labels,OpSys-Win"
48 for file in {buildbot
,buildbot-slave
}-$VERSION.
{tar.gz
,zip}{,.asc
}; do
53 labels
=`findlabels "$file"`
54 file=`findfile "$file"`
55 echo "Uploading $file with labels $labels"
56 python common
/googlecode_upload.py \