summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-10-06 17:51:42 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-10-06 17:51:42 +0000
commit1733f680f22a6f15ad0ba86a3849cf9e6280c351 (patch)
tree70d3404dd98d2de0c2bb07e8a461f4f4c55b75ab /scripts
parentfee81c46f5890d9024c0f4e164d555fe828f0d13 (diff)
downloadparted-1733f680f22a6f15ad0ba86a3849cf9e6280c351.tar.gz
* 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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release/tarball_upload.sh18
1 files changed, 14 insertions, 4 deletions
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."
-