blob: e9d0c994888932a4dd9f69468b6a0ba1b22baf8b [file] [log] [blame]
Fred Drakefcf275e1998-03-03 17:22:44 +00001#! /bin/sh
2#
3# script to create the latex source distribution
4# * should be modified to get the Python version number automatically
5# from the Makefile or someplace.
6#
7# usage:
8# ./mktarball.sh [tag]
9#
10# without [tag]: generate from the current version that's checked in
11# (*NOT* what's in the current directory!)
12#
13# with [tag]: generate from the named tag
14
15VERSION=1.5
16
17TEMPDIR=tmp.$$
18MYDIR=`pwd`
19
20TAG="$1"
21
Fred Drake2888bf61998-03-05 16:31:22 +000022mkdirhier $TEMPDIR/Python-$VERSION/Doc || exit $?
Fred Drakefcf275e1998-03-03 17:22:44 +000023if [ "$TAG" ] ; then
Fred Drake2888bf61998-03-05 16:31:22 +000024 cvs export -r $TAG -d $TEMPDIR/Python-$VERSION/Doc python/dist/src/Doc \
25 || exit $?
Fred Drakefcf275e1998-03-03 17:22:44 +000026else
Fred Drake2888bf61998-03-05 16:31:22 +000027 cvs checkout -d $TEMPDIR/Python-$VERSION/Doc python/dist/src/Doc || exit $?
Fred Drakefcf275e1998-03-03 17:22:44 +000028 rm -r `find $TEMPDIR -name CVS -print` || exit $?
29fi
30
31cd $TEMPDIR
32
Fred Drake2888bf61998-03-05 16:31:22 +000033(tar cf - Python-$VERSION | gzip -9 >$MYDIR/latex-$VERSION.tar.gz) || exit $?
Fred Drakefcf275e1998-03-03 17:22:44 +000034cd $MYDIR
35rm -r $TEMPDIR || exit $?
36
37exit 0