From 1733f680f22a6f15ad0ba86a3849cf9e6280c351 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Fri, 6 Oct 2006 17:51:42 +0000 Subject: [PATCH] * scripts/release/tarball_upload.sh: Support the -a (or --alpha) switch on the tarball upload script. This switch will upload the release to alpha.gnu.org rather than ftp.gnu.org. git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@838 2d424fd7-7fe2-0310-af74-8bc65edeb173 --- ChangeLog | 5 +++++ scripts/release/tarball_upload.sh | 18 ++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 752f345..a4c915b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,11 @@ front-end. This file is only for reference purposes and top-level changes. See libparted/ChangeLog and parted/ChangeLog. ============================================================================== +2006-10-06 David Cantrell + * scripts/release/tarball_upload.sh: Support the -a (or --alpha) switch + on the tarball upload script. This switch will upload the release to + alpha.gnu.org rather than ftp.gnu.org. + 2006-09-15 David Cantrell * doc/pt_BR/partprobe.8.pt_BR.po: Removed extra double quote at the end of line 6. diff --git a/scripts/release/tarball_upload.sh b/scripts/release/tarball_upload.sh index 869b903..0737935 100755 --- a/scripts/release/tarball_upload.sh +++ b/scripts/release/tarball_upload.sh @@ -3,6 +3,19 @@ #set -x SRCDIR=. +FTPURL=ftp://ftp-upload.gnu.org/incoming/ftp/ + +case $1 in + -a|--alpha) + FTPURL=ftp://ftp-upload.gnu.org/incoming/alpha/ ;; + -?|--help) + echo "Upload tarball to ftp.gnu.org" + echo "Usage: $(basename $0) [option]" + echo "Options:" + echo " -a, --alpha Upload to alpha.gnu.org" + echo " -?, --help Display usage screen" + exit 0 ;; +esac cd $SRCDIR @@ -151,9 +164,7 @@ for EXT in gz bz2; do SIG=parted-$VERSION.tar.$EXT.sig DIRECTIVE=$TARBALL.directive for f in $TARBALL $SIG $DIRECTIVE.asc; do - curl --upload-file $PWD/$f \ - 'ftp://ftp-upload.gnu.org/incoming/ftp/' - + curl --upload-file $PWD/$f $FTPURL if [ $? -eq 0 ]; then echo "-> successfully uploaded $f." else @@ -163,4 +174,3 @@ for EXT in gz bz2; do done message "* all files uploaded." - -- 2.11.0