]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/tex2rtf/distrib/zipsrc.sh
Rebake after adding libs html and xml to samples using lib adv
[wxWidgets.git] / utils / tex2rtf / distrib / zipsrc.sh
index 742421734ace2e813141e9397a05c6cd0d724a76..df7bdbb401e619f52ee9cd70d0ca901115cf6060 100644 (file)
@@ -1,27 +1,29 @@
 #!/bin/sh
-# Zip up StoryLines source
-
-expandlines()
-{
-    toexpand=$1
-    outputfile=$2
-
-    rm -f $outputfile
-    touch $outputfile
-    for line in `cat $toexpand` ; do
-      if [ $line != "" ]; then
-        ls $line >> $outputfile
-      fi
-    done
-}
-
-CAFEDIR=$CAFE
-STDIR=$CAFE/storylines
-COMMONDIR=$CAFE/common
-
-cd $CAFE
-expandlines $STDIR/distrib/src.rsp temp.txt
-zip -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt
-expandlines $CAFEDIR/distrib/src.rsp temp.txt
-zip -u -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt
-rm temp.txt
+# Zip up Tex2RTF source
+
+VERSION=-$1
+if [ "$VERSION" = "-" ] ; then
+  VERSION=""
+fi
+
+TEX2RTFDIR=`pwd`/..
+
+rm -f $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.zip
+rm -f $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar.gz
+
+mkdir $TEX2RTFDIR/tex2rtf$VERSION-source
+
+cd $TEX2RTFDIR
+tar -c `cat $TEX2RTFDIR/distrib/src.rsp` | (cd tex2rtf$VERSION-source ; tar -x)
+
+# Make a zip archive
+zip -9 -r $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.zip tex2rtf$VERSION-source
+
+# Now make a tar archive
+tar cf $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar tex2rtf$VERSION-source
+gzip -9 $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar
+tar cf $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar tex2rtf$VERSION-source
+bzip2 -9 $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar
+
+
+rm -rf $TEX2RTFDIR/tex2rtf$VERSION-source