mirror of https://github.com/python/cpython.git
Added --tools option, to package only the framework (no documents).
This commit is contained in:
parent
260400f3f5
commit
d29cf379b9
|
@ -5,13 +5,22 @@
|
||||||
# from the Makefile or someplace.
|
# from the Makefile or someplace.
|
||||||
#
|
#
|
||||||
# usage:
|
# usage:
|
||||||
# ./mktarball.sh release [tag]
|
# ./mktarball.sh [-t|--tools] release [tag]
|
||||||
|
#
|
||||||
|
# with -t|--tools: doesn't include the documents, only the framework
|
||||||
#
|
#
|
||||||
# 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
|
||||||
|
|
||||||
|
# VERSION='$Revision$'
|
||||||
|
|
||||||
|
if [ "$1" = "-t" -o "$1" = "--tools" ] ; then
|
||||||
|
shift 1
|
||||||
|
TOOLS_ONLY=true
|
||||||
|
fi
|
||||||
|
|
||||||
RELEASE=$1; shift
|
RELEASE=$1; shift
|
||||||
|
|
||||||
TEMPDIR=tmp.$$
|
TEMPDIR=tmp.$$
|
||||||
|
@ -33,9 +42,18 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$TOOLS_ONLY" ] ; then
|
||||||
|
cd $TEMPDIR/Python-$RELEASE/Doc
|
||||||
|
# remove the actual documents
|
||||||
|
rm -rf api ext lib mac ref tut
|
||||||
|
cd ..
|
||||||
|
(tar cf - Doc | gzip -9 >$MYDIR/tools-$RELEASE.tgz) || exit $?
|
||||||
|
else
|
||||||
cd $TEMPDIR
|
cd $TEMPDIR
|
||||||
|
|
||||||
(tar cf - Python-$RELEASE | gzip -9 >$MYDIR/latex-$RELEASE.tgz) || exit $?
|
(tar cf - Python-$RELEASE | gzip -9 >$MYDIR/latex-$RELEASE.tgz) || exit $?
|
||||||
|
fi
|
||||||
cd $MYDIR
|
cd $MYDIR
|
||||||
rm -r $TEMPDIR || exit $?
|
rm -r $TEMPDIR || exit $?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue