]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/distrib/zipsrc.sh
a3e49d7da7424ad63a17288aa701b3b0ba876062
[wxWidgets.git] / utils / tex2rtf / distrib / zipsrc.sh
1 #!/bin/sh
2 # Zip up Tex2RTF source
3
4 expandlines()
5 {
6 toexpand=$1
7 outputfile=$2
8
9 rm -f $outputfile
10 touch $outputfile
11 for line in `cat $toexpand` ; do
12 if [ $line != "" ]; then
13 ls $line >> $outputfile
14 fi
15 done
16 }
17
18 TEX2RTFDIR=`pwd`/..
19
20 rm -f $TEX2RTFDIR/deliver/tex2rtf-source.zip
21 rm -f $TEX2RTFDIR/deliver/tex2rtf-source.tar.gz
22
23 # Make a zip archive
24 cd $TEX2RTFDIR
25 expandlines $TEX2RTFDIR/distrib/src.rsp temp.txt
26 zip -@ $TEX2RTFDIR/deliver/tex2rtf-source.zip < temp.txt
27 rm temp.txt
28
29 # Now make a tar archive
30 ls `cat $TEX2RTFDIR/distrib/src.rsp` > /tmp/tex2rtf.txt
31 tar cvf $TEX2RTFDIR/deliver/tex2rtf-source.tar -T /tmp/tex2rtf.txt
32 gzip $TEX2RTFDIR/deliver/tex2rtf-source.tar
33 rm /tmp/tex2rtf.txt
34