1998-03-03 17:22:44 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# script to create the latex source distribution
|
|
|
|
# * should be modified to get the Python version number automatically
|
|
|
|
# from the Makefile or someplace.
|
|
|
|
#
|
|
|
|
# usage:
|
1998-05-11 18:52:24 +00:00
|
|
|
# ./mktarball.sh release [tag]
|
1998-03-03 17:22:44 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
1998-05-11 18:52:24 +00:00
|
|
|
RELEASE=$1; shift
|
1998-03-03 17:22:44 +00:00
|
|
|
|
|
|
|
TEMPDIR=tmp.$$
|
|
|
|
MYDIR=`pwd`
|
|
|
|
|
|
|
|
TAG="$1"
|
|
|
|
|
1998-04-13 21:55:56 +00:00
|
|
|
mkdirhier $TEMPDIR/Python-$RELEASE/Doc || exit $?
|
1998-03-03 17:22:44 +00:00
|
|
|
if [ "$TAG" ] ; then
|
1998-04-13 21:55:56 +00:00
|
|
|
cvs export -r $TAG -d $TEMPDIR/Python-$RELEASE/Doc python/dist/src/Doc \
|
1998-03-05 16:31:22 +00:00
|
|
|
|| exit $?
|
1998-03-03 17:22:44 +00:00
|
|
|
else
|
1998-04-13 21:55:56 +00:00
|
|
|
cvs checkout -d $TEMPDIR/Python-$RELEASE/Doc python/dist/src/Doc || exit $?
|
1998-03-03 17:22:44 +00:00
|
|
|
rm -r `find $TEMPDIR -name CVS -print` || exit $?
|
|
|
|
fi
|
|
|
|
|
1998-05-11 18:52:24 +00:00
|
|
|
rm -f `find $TEMPDIR -name .cvsignore -print`
|
1998-03-10 14:00:55 +00:00
|
|
|
|
1998-04-13 21:55:56 +00:00
|
|
|
rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.pdf
|
|
|
|
rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.ps
|
1998-03-10 14:00:55 +00:00
|
|
|
|
1998-03-03 17:22:44 +00:00
|
|
|
cd $TEMPDIR
|
|
|
|
|
1998-05-11 21:08:39 +00:00
|
|
|
(tar cf - Python-$RELEASE | gzip -9 >$MYDIR/latex-$RELEASE.tgz) || exit $?
|
1998-03-03 17:22:44 +00:00
|
|
|
cd $MYDIR
|
|
|
|
rm -r $TEMPDIR || exit $?
|
|
|
|
|
|
|
|
exit 0
|