]> git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/utils.inc
added wxStandardPaths::GetDocumentsDir() (patch 1214360)
[wxWidgets.git] / distrib / scripts / utils.inc
1 # We can't use e.g. this:
2 # ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWidgets-$VERSION-gen.zip
3 # because there's not enough space on the command line, plus we need to ignore the
4 # blank lines.
5 # So if we need to (not in this script so far) we do something like this instead:
6 # expandlines $SRC/setup/files.rsp temp.txt
7 # zip -@ `$CYGPATHPROG -w $DEST/archive.zip` < temp.txt
8
9 expandlines()
10 {
11 toexpand=$1
12 outputfile=$2
13
14 rm -f $outputfile
15 touch $outputfile
16 for line in `cat $toexpand` ; do
17 if [ "$line" != "" ]; then
18 ls $line >> $outputfile
19 fi
20 uniq < $outputfile > /tmp/uniqtemp.txt
21 mv /tmp/uniqtemp.txt $outputfile
22 done
23 }