summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-03 17:22:44 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-03 17:22:44 (GMT)
commitfcf275e0be302fa48824e5a41e9faae264113341 (patch)
treeb8a1b9803f1bf90a2bcb0934c9cbf0d646e95f60 /Doc
parentf611d3764790b16b74ea862494f1bbea181a225a (diff)
downloadcpython-fcf275e0be302fa48824e5a41e9faae264113341.zip
cpython-fcf275e0be302fa48824e5a41e9faae264113341.tar.gz
cpython-fcf275e0be302fa48824e5a41e9faae264113341.tar.bz2
Script to create a source distribution. See comments at top.
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/mktarball.sh36
-rwxr-xr-xDoc/tools/mktarball.sh36
2 files changed, 72 insertions, 0 deletions
diff --git a/Doc/mktarball.sh b/Doc/mktarball.sh
new file mode 100755
index 0000000..391e99b
--- /dev/null
+++ b/Doc/mktarball.sh
@@ -0,0 +1,36 @@
+#! /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 [tag]
+#
+# 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=1.5
+
+TEMPDIR=tmp.$$
+MYDIR=`pwd`
+
+TAG="$1"
+
+mkdirhier $TEMPDIR/Doc || exit $?
+if [ "$TAG" ] ; then
+ cvs export -r $TAG -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
+else
+ cvs checkout -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
+ rm -r `find $TEMPDIR -name CVS -print` || exit $?
+fi
+
+cd $TEMPDIR
+
+(tar cf - Doc | gzip -9 >$MYDIR/latex-$VERSION.tar.gz) || exit $?
+cd $MYDIR
+rm -r $TEMPDIR || exit $?
+
+exit 0
diff --git a/Doc/tools/mktarball.sh b/Doc/tools/mktarball.sh
new file mode 100755
index 0000000..391e99b
--- /dev/null
+++ b/Doc/tools/mktarball.sh
@@ -0,0 +1,36 @@
+#! /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 [tag]
+#
+# 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=1.5
+
+TEMPDIR=tmp.$$
+MYDIR=`pwd`
+
+TAG="$1"
+
+mkdirhier $TEMPDIR/Doc || exit $?
+if [ "$TAG" ] ; then
+ cvs export -r $TAG -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
+else
+ cvs checkout -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
+ rm -r `find $TEMPDIR -name CVS -print` || exit $?
+fi
+
+cd $TEMPDIR
+
+(tar cf - Doc | gzip -9 >$MYDIR/latex-$VERSION.tar.gz) || exit $?
+cd $MYDIR
+rm -r $TEMPDIR || exit $?
+
+exit 0