]> git.saurik.com Git - wxWidgets.git/blame - utils/tex2rtf/distrib/zipsrc.sh
Added files for creating independent Tex2RTF distributions
[wxWidgets.git] / utils / tex2rtf / distrib / zipsrc.sh
CommitLineData
56d34922
JS
1#!/bin/sh
2# Zip up StoryLines source
3
4expandlines()
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
18CAFEDIR=$CAFE
19STDIR=$CAFE/storylines
20COMMONDIR=$CAFE/common
21
22cd $CAFE
23expandlines $STDIR/distrib/src.rsp temp.txt
24zip -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt
25expandlines $CAFEDIR/distrib/src.rsp temp.txt
26zip -u -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt
27rm temp.txt