Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcf275e

Browse files
committed
Script to create a source distribution. See comments at top.
1 parent f611d37 commit fcf275e

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

Doc/mktarball.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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:
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+
15+
VERSION=1.5
16+
17+
TEMPDIR=tmp.$$
18+
MYDIR=`pwd`
19+
20+
TAG="$1"
21+
22+
mkdirhier $TEMPDIR/Doc || exit $?
23+
if [ "$TAG" ] ; then
24+
cvs export -r $TAG -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
25+
else
26+
cvs checkout -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
27+
rm -r `find $TEMPDIR -name CVS -print` || exit $?
28+
fi
29+
30+
cd $TEMPDIR
31+
32+
(tar cf - Doc | gzip -9 >$MYDIR/latex-$VERSION.tar.gz) || exit $?
33+
cd $MYDIR
34+
rm -r $TEMPDIR || exit $?
35+
36+
exit 0

Doc/tools/mktarball.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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:
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+
15+
VERSION=1.5
16+
17+
TEMPDIR=tmp.$$
18+
MYDIR=`pwd`
19+
20+
TAG="$1"
21+
22+
mkdirhier $TEMPDIR/Doc || exit $?
23+
if [ "$TAG" ] ; then
24+
cvs export -r $TAG -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
25+
else
26+
cvs checkout -d $TEMPDIR/Doc python/dist/src/Doc || exit $?
27+
rm -r `find $TEMPDIR -name CVS -print` || exit $?
28+
fi
29+
30+
cd $TEMPDIR
31+
32+
(tar cf - Doc | gzip -9 >$MYDIR/latex-$VERSION.tar.gz) || exit $?
33+
cd $MYDIR
34+
rm -r $TEMPDIR || exit $?
35+
36+
exit 0

0 commit comments

Comments
 (0)