]> git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/utils.inc
move to svn
[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 }
24
25 docopydocs()
26 {
27 APPDIR=$1
28 DESTDIR=$2
29
30 cp $APPDIR/docs/readme.txt $DESTDIR/README.txt
31 cp $APPDIR/docs/changes.txt $DESTDIR/CHANGES.txt
32 cp $APPDIR/docs/licence.txt $DESTDIR/LICENCE.txt
33 cp $APPDIR/docs/lgpl.txt $DESTDIR/COPYING.LIB
34
35 cp $APPDIR/docs/changes.txt $DESTDIR/changes-$VERSION.txt
36 cp $APPDIR/docs/readme.txt $DESTDIR/readme-$VERSION.txt
37
38 cp $APPDIR/docs/msw/readme.txt $DESTDIR/readme-msw-$VERSION.txt
39 cp $APPDIR/docs/msw/install.txt $DESTDIR/install-msw-$VERSION.txt
40
41 cp $APPDIR/docs/mac/readme.txt $DESTDIR/readme-mac-$VERSION.txt
42 cp $APPDIR/docs/mac/install.txt $DESTDIR/install-mac-$VERSION.txt
43
44 cp $APPDIR/docs/motif/readme.txt $DESTDIR/readme-motif-$VERSION.txt
45 cp $APPDIR/docs/motif/install.txt $DESTDIR/install-motif-$VERSION.txt
46
47 cp $APPDIR/docs/gtk/readme.txt $DESTDIR/readme-gtk-$VERSION.txt
48 cp $APPDIR/docs/gtk/install.txt $DESTDIR/install-gtk-$VERSION.txt
49
50 cp $APPDIR/docs/x11/readme.txt $DESTDIR/readme-x11-$VERSION.txt
51 cp $APPDIR/docs/x11/install.txt $DESTDIR/install-x11-$VERSION.txt
52
53 cp $APPDIR/docs/mgl/readme.txt $DESTDIR/readme-mgl-$VERSION.txt
54 cp $APPDIR/docs/mgl/install.txt $DESTDIR/install-mgl-$VERSION.txt
55
56 cp $APPDIR/docs/dfb/install.txt $DESTDIR/install-dfb-$VERSION.txt
57
58 cp $APPDIR/docs/cocoa/readme.txt $DESTDIR/readme-cocoa-$VERSION.txt
59 cp $APPDIR/docs/cocoa/install.txt $DESTDIR/install-cocoa-$VERSION.txt
60
61 cp $APPDIR/docs/base/readme.txt $DESTDIR/readme-base-$VERSION.txt
62
63 cp $APPDIR/docs/os2/install.txt $DESTDIR/install-os2-$VERSION.txt
64
65 cp $APPDIR/docs/univ/readme.txt $DESTDIR/readme-univ-$VERSION.txt
66
67 cp $APPDIR/docs/readme_vms.txt $DESTDIR/readme-vms-$VERSION.txt
68
69 }