File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717# VERSION='$Revision$'
1818
19+ GZIP=' gzip -9'
20+ GZIPEXT=tgz
21+
1922if [ " $1 " = " -t" -o " $1 " = " --tools" ] ; then
2023 shift 1
2124 TOOLS_ONLY=true
@@ -24,10 +27,15 @@ if [ "$1" = "-z" -o "$1" = "--zip" ] ; then
2427 shift 1
2528 USE_ZIP=true
2629fi
27- if [ " $1 " = " -g" -o " $1 " = " --targz" ] ; then
30+ if [ " $1 " = " -g" -o " $1 " = " --targz" -o " $1 " = " --tgz " ] ; then
2831 shift 1
2932 USE_ZIP=' '
3033fi
34+ if [ " $1 " = " -b" -o " $1 " = " --bz2" -o " $1 " = " --bzip2" ] ; then
35+ shift 1
36+ GZIP=' bzip2 -9'
37+ GZIPEXT=tar.bz2
38+ fi
3139
3240RELEASE=$1 ; shift
3341
@@ -57,17 +65,16 @@ if [ "$TOOLS_ONLY" ] ; then
5765 rm -rf api ext lib mac ref tut
5866 cd ..
5967 if [ " $USE_ZIP " ] ; then
60- pwd
6168 zip -r9 tools-$RELEASE .zip Doc || exit
6269 else
63- (tar cf - Doc | gzip -9 > $MYDIR /tools-$RELEASE .tgz ) || exit $?
70+ (tar cf - Doc | $GZIP > $MYDIR /tools-$RELEASE .$GZIPEXT ) || exit $?
6471 fi
6572else
6673 cd $TEMPDIR
6774 if [ " $USE_ZIP " ] ; then
6875 zip -r9 $MYDIR /latex-$RELEASE .zip Python-$RELEASE || exit $?
6976 else
70- (tar cf - Python-$RELEASE | gzip -9 > $MYDIR /latex-$RELEASE .tgz ) \
77+ (tar cf - Python-$RELEASE | $GZIP > $MYDIR /latex-$RELEASE .$GZIPEXT ) \
7178 || exit $?
7279 fi
7380fi
You can’t perform that action at this time.
0 commit comments