mirror of https://github.com/python/cpython
Accept the release number on the command line instead of hardcoding it.
This commit is contained in:
parent
323dc70de5
commit
f2fa1e2afe
|
@ -5,14 +5,14 @@
|
||||||
# from the Makefile or someplace.
|
# from the Makefile or someplace.
|
||||||
#
|
#
|
||||||
# usage:
|
# usage:
|
||||||
# ./mktarball.sh [tag]
|
# ./mktarball.sh release [tag]
|
||||||
#
|
#
|
||||||
# without [tag]: generate from the current version that's checked in
|
# without [tag]: generate from the current version that's checked in
|
||||||
# (*NOT* what's in the current directory!)
|
# (*NOT* what's in the current directory!)
|
||||||
#
|
#
|
||||||
# with [tag]: generate from the named tag
|
# with [tag]: generate from the named tag
|
||||||
|
|
||||||
RELEASE=1.5.1
|
RELEASE=$1; shift
|
||||||
|
|
||||||
TEMPDIR=tmp.$$
|
TEMPDIR=tmp.$$
|
||||||
MYDIR=`pwd`
|
MYDIR=`pwd`
|
||||||
|
@ -28,7 +28,7 @@ else
|
||||||
rm -r `find $TEMPDIR -name CVS -print` || exit $?
|
rm -r `find $TEMPDIR -name CVS -print` || exit $?
|
||||||
fi
|
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.pdf
|
||||||
rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.ps
|
rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.ps
|
||||||
|
|
Loading…
Reference in New Issue