]>
Commit | Line | Data |
---|---|---|
56d34922 JS |
1 | #!/bin/sh |
2 | # Zip up StoryLines 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 | CAFEDIR=$CAFE | |
19 | STDIR=$CAFE/storylines | |
20 | COMMONDIR=$CAFE/common | |
21 | ||
22 | cd $CAFE | |
23 | expandlines $STDIR/distrib/src.rsp temp.txt | |
24 | zip -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt | |
25 | expandlines $CAFEDIR/distrib/src.rsp temp.txt | |
26 | zip -u -@ $CAFEDIR/deliver/storylines_src.zip < temp.txt | |
27 | rm temp.txt |