]>
Commit | Line | Data |
---|---|---|
56d34922 | 1 | #!/bin/sh |
bacfb94f | 2 | # Zip up Tex2RTF source |
56d34922 | 3 | |
28a663e6 VS |
4 | VERSION=-$1 |
5 | if [ "$VERSION" = "-" ] ; then | |
6 | VERSION="" | |
7 | fi | |
56d34922 | 8 | |
bacfb94f | 9 | TEX2RTFDIR=`pwd`/.. |
56d34922 | 10 | |
28a663e6 VS |
11 | rm -f $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.zip |
12 | rm -f $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar.gz | |
13 | ||
14 | mkdir $TEX2RTFDIR/tex2rtf$VERSION-source | |
bacfb94f | 15 | |
bacfb94f | 16 | cd $TEX2RTFDIR |
28a663e6 VS |
17 | tar -c `cat $TEX2RTFDIR/distrib/src.rsp` | (cd tex2rtf$VERSION-source ; tar -x) |
18 | ||
19 | # Make a zip archive | |
20 | zip -9 -r $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.zip tex2rtf$VERSION-source | |
bacfb94f JS |
21 | |
22 | # Now make a tar archive | |
28a663e6 VS |
23 | tar cf $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar tex2rtf$VERSION-source |
24 | gzip -9 $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar | |
25 | tar cf $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar tex2rtf$VERSION-source | |
26 | bzip2 -9 $TEX2RTFDIR/deliver/tex2rtf$VERSION-source.tar | |
27 | ||
bacfb94f | 28 | |
28a663e6 | 29 | rm -rf $TEX2RTFDIR/tex2rtf$VERSION-source |