Tweak the packaging scripts. Add a starting point for the uploader.

This commit is contained in:
Paul Chote
2010-11-21 13:06:38 +13:00
parent dba7335594
commit 5764bc1c1c
5 changed files with 34 additions and 3 deletions

26
packaging/upload-all.sh Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
FTPSERVER=openra.res0l.net
TAG=$1
TYPE=`echo $TAG | grep -o "^[a-z]\\+"`
VERSION=`echo $TAG | grep -o "[0-9]\\+-\\?[0-9]\\?"`
case "$TYPE" in
"release")
FTPPATH="openra.res0l.net/releases"
;;
"playtest")
FTPPATH="openra.res0l.net/playtests"
;;
*)
msg "\E[31m" "Unrecognized tag prefix $TYPE"
exit 1
;;
esac
uploader.sh windows "$VERSION" OpenRA-$VERSION.exe "$FTPPATH" "$2" "$3"
uploader.sh mac "$VERSION" OpenRA-$VERSION.zip "$FTPPATH" "$2" "$3"
if [ "$TYPE" = "release" ]; then
wput --basename=../ -u ../VERSION ftp://$2:$3@$FTPSERVER/$FTPPATH/master/
fi