blob: 9ec622b8d17010fa54d7f700d1feb021f595c280 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#! /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:
# ./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
# (*NOT* what's in the current directory!)
#
# with [tag]: generate from the named tag
# VERSION='$Revision$'
if [ "$1" = "-t" -o "$1" = "--tools" ] ; then
shift 1
TOOLS_ONLY=true
fi
if [ "$1" = "-z" -o "$1" = "--zip" ] ; then
shift 1
USE_ZIP=true
fi
if [ "$1" = "-g" -o "$1" = "--targz" ] ; then
shift 1
USE_ZIP=''
fi
RELEASE=$1; shift
TEMPDIR=tmp.$$
MYDIR=`pwd`
TAG="$1"
mkdirhier $TEMPDIR/Python-$RELEASE/Doc || exit $?
if [ "$TAG" ] ; then
cvs export -r $TAG -d $TEMPDIR/Python-$RELEASE/Doc python/dist/src/Doc \
|| exit $?
else
cvs checkout -d $TEMPDIR/Python-$RELEASE/Doc python/dist/src/Doc || exit $?
rm -r `find $TEMPDIR -name CVS -print` || exit $?
fi
rm -f `find $TEMPDIR -name .cvsignore -print`
rm -f $TEMPDIR/Python-$RELEASE/Doc/ref/ref.pdf
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 ..
if [ "$USE_ZIP" ] ; then
pwd
zip -r9 tools-$RELEASE.zip Doc || exit
else
(tar cf - Doc | gzip -9 >$MYDIR/tools-$RELEASE.tgz) || exit $?
fi
else
cd $TEMPDIR
if [ "$USE_ZIP" ] ; then
zip -r9 $MYDIR/latex-$RELEASE.zip Python-$RELEASE || exit $?
else
(tar cf - Python-$RELEASE | gzip -9 >$MYDIR/latex-$RELEASE.tgz) \
|| exit $?
fi
fi
cd $MYDIR
rm -r $TEMPDIR || exit $?
exit 0
|