X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bacfb94fb36112374fc328d489a47c02b6d41684..169948a05ff0707ecddc12f9e26d2a0a994fa0ae:/utils/tex2rtf/distrib/zipsrc.sh?ds=inline diff --git a/utils/tex2rtf/distrib/zipsrc.sh b/utils/tex2rtf/distrib/zipsrc.sh index a3e49d7da7..df7bdbb401 100644 --- a/utils/tex2rtf/distrib/zipsrc.sh +++ b/utils/tex2rtf/distrib/zipsrc.sh @@ -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