Modify upload for Beta Releases -- phase III

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3655 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-03-11 16:30:11 +00:00
parent 7513d25f13
commit 15611e231f

View File

@ -8,18 +8,17 @@ case $1 in
;; ;;
*Beta*|*RC*) *Beta*|*RC*)
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1" DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
rpm=shorewall-${1%-*}-0${1#*-}\* rpm=shorewall-${1%-*}-0${1#*-}.noarch.rpm
;; ;;
*) *)
DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1" DEST="root@mail.shorewall.net:/srv/ftp/pub/shorewall/${1%.*}/shorewall-$1"
;; ;;
esac esac
usage() { echo "$0: <version>"; } [ $# -eq 1 ] || { echo "Usage: $(basename $0) <version>"; exit 2; }
[ $# -eq 1 ] || usage
[ -d errata ] || mkdir errata [ -d errata ] || mkdir errata
echo "There are no known problems in Shorewall version $1" > known_problems.txt echo "There are no known problems in Shorewall version $1" > known_problems.txt
scp -r errata known_problems.txt patch-$1 ${1}.* shorewall-${1}/releasenotes.txt shorewall-${1}-[0-1]* shorewall*${1}*.tgz* shorewall*${1}*.bz2* $rpm $DEST scp -r errata known_problems.txt patch-$1 ${1}.* shorewall-${1}/releasenotes.txt shorewall-${1}-1* shorewall*${1}*.tgz* shorewall*${1}*.bz2* $rpm $DEST