OSDN Git Service

* scripts/release/tarball_upload.sh: Support the -a (or --alpha) switch
authorDavid Cantrell <dcantrell@redhat.com>
Fri, 6 Oct 2006 17:51:42 +0000 (17:51 +0000)
committerDavid Cantrell <dcantrell@redhat.com>
Fri, 6 Oct 2006 17:51:42 +0000 (17:51 +0000)
   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
scripts/release/tarball_upload.sh

index 752f345..a4c915b 100644 (file)
--- 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  <dcantrell@redhat.com>
+       * 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  <dcantrell@redhat.com>
        * doc/pt_BR/partprobe.8.pt_BR.po: Removed extra double quote at the end
        of line 6.
index 869b903..0737935 100755 (executable)
@@ -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."
-