]> git.saurik.com Git - wxWidgets.git/commitdiff
seems I forgot to check in these changes to tex2rtf packaging scripts...
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 12 Aug 2002 22:08:05 +0000 (22:08 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 12 Aug 2002 22:08:05 +0000 (22:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/tex2rtf/distrib/makedistrib.sh
utils/tex2rtf/distrib/zipsrc.sh

index a1c181e33abd211e1d019f0efe2c136fc0a9e8f2..a3cc9812e3aa27a41d3748bc79029a056ba04ab3 100755 (executable)
@@ -9,3 +9,4 @@ TEX2RTFBIN=$WXWIN/utils/tex2rtf/deliver/tex2rtf
 DESTDIR=$WXWIN/utils/tex2rtf/deliver
 
 $WXWIN/utils/tex2rtf/distrib/maketarball.sh $WXWIN $TEX2RTFBIN $DESTDIR $VERSION
+sh zipsrc.sh $VERSION
index a3e49d7da7424ad63a17288aa701b3b0ba876062..df7bdbb401e619f52ee9cd70d0ca901115cf6060 100644 (file)
@@ -1,34 +1,29 @@
 #!/bin/sh
 # Zip up Tex2RTF 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
-}
+VERSION=-$1
+if [ "$VERSION" = "-" ] ; then
+  VERSION=""
+fi
 
 TEX2RTFDIR=`pwd`/..
 
-rm -f $TEX2RTFDIR/deliver/tex2rtf-source.zip
-rm -f $TEX2RTFDIR/deliver/tex2rtf-source.tar.gz
+rm -f $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.zip
+rm -f $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar.gz
+
+mkdir $TEX2RTFDIR/tex2rtf$VERSION-source
 
-# Make a zip archive
 cd $TEX2RTFDIR
-expandlines $TEX2RTFDIR/distrib/src.rsp temp.txt
-zip -@ $TEX2RTFDIR/deliver/tex2rtf-source.zip < temp.txt
-rm temp.txt
+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
-ls `cat $TEX2RTFDIR/distrib/src.rsp` > /tmp/tex2rtf.txt
-tar cvf $TEX2RTFDIR/deliver/tex2rtf-source.tar -T /tmp/tex2rtf.txt
-gzip $TEX2RTFDIR/deliver/tex2rtf-source.tar
-rm /tmp/tex2rtf.txt
+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