]> granicus.if.org Git - python/commitdiff
Accept the release number on the command line instead of hardcoding it.
authorFred Drake <fdrake@acm.org>
Mon, 11 May 1998 18:52:24 +0000 (18:52 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 11 May 1998 18:52:24 +0000 (18:52 +0000)
Doc/tools/mktarball.sh

index cd8bd8f26142a4f0609d3267abd161812a5641b7..04750818e74c0afb1b83e96129a183c98a6503fc 100755 (executable)
@@ -5,14 +5,14 @@
 #    from the Makefile or someplace.
 #
 #  usage:
-#      ./mktarball.sh [tag]
+#      ./mktarball.sh release [tag]
 #
 #  without [tag]:  generate from the current version that's checked in
 #                 (*NOT* what's in the current directory!)
 #
 #  with [tag]:  generate from the named tag
 
-RELEASE=1.5.1
+RELEASE=$1; shift
 
 TEMPDIR=tmp.$$
 MYDIR=`pwd`
@@ -28,7 +28,7 @@ else
     rm -r `find $TEMPDIR -name CVS -print` || exit $?
 fi
 
-rm -f `find $TEMPDIR/Python-$RELEASE -name .cvsignore -print`
+rm -f `find $TEMPDIR -name .cvsignore -print`
 
 rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.pdf
 rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.ps