diff options
author | Mathieu Blondel <mathieu@mblondel.org> | 2010-08-02 04:11:37 +0000 |
---|---|---|
committer | Mathieu Blondel <mathieu@mblondel.org> | 2010-08-02 04:11:37 +0000 |
commit | d65d14d3c50f62535aa492a420764cf96f118268 (patch) | |
tree | b91e5524db56abf952da82ad0dd04c2970be2356 /make_release.sh | |
parent | 0c8217dc3bfb55e9f6b6256f9a034c0de605c693 (diff) | |
download | wikipediafs-d65d14d3c50f62535aa492a420764cf96f118268.tar.gz |
Allow users other than mblondel to do releases.
git-svn-id: http://svn.code.sf.net/p/wikipediafs/code/trunk@71 59acd704-e115-0410-a914-e735a229ed7c
Diffstat (limited to 'make_release.sh')
-rw-r--r-- | make_release.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/make_release.sh b/make_release.sh index 8b974a1..789edcb 100644 --- a/make_release.sh +++ b/make_release.sh @@ -4,10 +4,16 @@ RM="`which rm` -vrf" MKDIR="`which mkdir` -p" if [ "$1foo" = "foo" ]; then - echo "usage: `basename $0` X.Y.Z" + echo "usage: `basename $0` X.Y.Z [username]" exit 1 fi +USER=mblondel + +if [ "$2foo" != "foo"]; then + USER=$2 +fi + PKG="wikipediafs-$1" TAR_PKG="$PKG.tar.gz" ZIP_PKG="$PKG.zip" @@ -28,7 +34,7 @@ gzip -9 doc/mount.wikipediafs.1 echo "Uploading site..." cp README README.txt scp site/*.htm site/*.png doc/mount.wikipediafs.htm README.txt \ -mblondel@shell.sourceforge.net:/home/groups/w/wi/wikipediafs/htdocs/ +$USER@shell.sourceforge.net:/home/groups/w/wi/wikipediafs/htdocs/ $RM README.txt echo "Removing unnecessary files..." |