Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 1 | #! /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: |
Fred Drake | f2fa1e2 | 1998-05-11 18:52:24 +0000 | [diff] [blame] | 8 | # ./mktarball.sh release [tag] |
Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 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 | |
Fred Drake | f2fa1e2 | 1998-05-11 18:52:24 +0000 | [diff] [blame] | 15 | RELEASE=$1; shift |
Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 16 | |
| 17 | TEMPDIR=tmp.$$ |
| 18 | MYDIR=`pwd` |
| 19 | |
| 20 | TAG="$1" |
| 21 | |
Fred Drake | e3ae519 | 1998-04-13 21:55:56 +0000 | [diff] [blame] | 22 | mkdirhier $TEMPDIR/Python-$RELEASE/Doc || exit $? |
Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 23 | if [ "$TAG" ] ; then |
Fred Drake | e3ae519 | 1998-04-13 21:55:56 +0000 | [diff] [blame] | 24 | cvs export -r $TAG -d $TEMPDIR/Python-$RELEASE/Doc python/dist/src/Doc \ |
Fred Drake | 2888bf6 | 1998-03-05 16:31:22 +0000 | [diff] [blame] | 25 | || exit $? |
Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 26 | else |
Fred Drake | e3ae519 | 1998-04-13 21:55:56 +0000 | [diff] [blame] | 27 | cvs checkout -d $TEMPDIR/Python-$RELEASE/Doc python/dist/src/Doc || exit $? |
Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 28 | rm -r `find $TEMPDIR -name CVS -print` || exit $? |
| 29 | fi |
| 30 | |
Fred Drake | f2fa1e2 | 1998-05-11 18:52:24 +0000 | [diff] [blame] | 31 | rm -f `find $TEMPDIR -name .cvsignore -print` |
Fred Drake | 45e564d | 1998-03-10 14:00:55 +0000 | [diff] [blame] | 32 | |
Fred Drake | e3ae519 | 1998-04-13 21:55:56 +0000 | [diff] [blame] | 33 | rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.pdf |
| 34 | rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.ps |
Fred Drake | 45e564d | 1998-03-10 14:00:55 +0000 | [diff] [blame] | 35 | |
Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 36 | cd $TEMPDIR |
| 37 | |
Fred Drake | 72dd58d | 1998-05-11 21:08:39 +0000 | [diff] [blame] | 38 | (tar cf - Python-$RELEASE | gzip -9 >$MYDIR/latex-$RELEASE.tgz) || exit $? |
Fred Drake | fcf275e | 1998-03-03 17:22:44 +0000 | [diff] [blame] | 39 | cd $MYDIR |
| 40 | rm -r $TEMPDIR || exit $? |
| 41 | |
| 42 | exit 0 |