File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ if [ "$1" = "-t" -o "$1" = "--tools" ] ; then
2020 shift 1
2121 TOOLS_ONLY=true
2222fi
23+ if [ " $1 " = " -z" -o " $1 " = " --zip" ] ; then
24+ shift 1
25+ USE_ZIP=true
26+ fi
27+ if [ " $1 " = " -g" -o " $1 " = " --targz" ] ; then
28+ shift 1
29+ USE_ZIP=' '
30+ fi
2331
2432RELEASE=$1 ; shift
2533
@@ -48,11 +56,20 @@ if [ "$TOOLS_ONLY" ] ; then
4856 # remove the actual documents
4957 rm -rf api ext lib mac ref tut
5058 cd ..
51- (tar cf - Doc | gzip -9 > $MYDIR /tools-$RELEASE .tgz) || exit $?
59+ if [ " $USE_ZIP " ] ; then
60+ pwd
61+ zip -r9 tools-$RELEASE .zip Doc || exit
62+ else
63+ (tar cf - Doc | gzip -9 > $MYDIR /tools-$RELEASE .tgz) || exit $?
64+ fi
5265else
5366 cd $TEMPDIR
54-
55- (tar cf - Python-$RELEASE | gzip -9 > $MYDIR /latex-$RELEASE .tgz) || exit $?
67+ if [ " $USE_ZIP " ] ; then
68+ zip -r9 $MYDIR /latex-$RELEASE .zip Python-$RELEASE || exit $?
69+ else
70+ (tar cf - Python-$RELEASE | gzip -9 > $MYDIR /latex-$RELEASE .tgz) \
71+ || exit $?
72+ fi
5673fi
5774cd $MYDIR
5875rm -r $TEMPDIR || exit $?
You can’t perform that action at this time.
0 commit comments