]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipmac.sh
fix bug with treectrl sample
[wxWidgets.git] / distrib / msw / zipmac.sh
CommitLineData
e42c7b85
JS
1#!/bin/sh
2
3# Zip up an external, generic + Windows distribution of wxWindows 2
4# Usage: zipmac.sh dest-dir
5# (set the WXWIN variable first so it knows where to take the sources from)
6
7if [ "$OS" = "Windows_NT" ]; then
8 echo NT
9 CYGPATHPROGW="cygpath -w"
10 CYGPATHPROGU="cygpath -u"
11else
12 echo Not NT
13 CYGPATHPROGW=echo
14 CYGPATHPROGU=echo
15fi
16
17SRC=`$CYGPATHPROGU $WXWIN`
18DEST=$1
19
20# Set this to the required version
21VERSION=2.3.0
22
23expandlines()
24{
25 toexpand=$1
26 outputfile=$2
27
28 rm -f $outputfile
29 touch $outputfile
30 for line in `cat $toexpand` ; do
31 if [ $line != "" ]; then
32 ls $line >> $outputfile
33 fi
34 done
35}
36
37if [ ! -d "$SRC" ]; then
38 echo $SRC not found.
39 exit 1
40fi
41
42if [ ! -d "$DEST" ]; then
43 echo $DEST not found.
44 exit 1
45fi
46
47echo Creating distribution in $DEST. Press return to continue.
48read dummy
49
50# Remove all existing files
51rm -f $DEST/wx*.zip
52
53if [ ! -d "$DEST/wx" ]; then
54 rm -f -r $DEST/wx
55fi
56
57
58cd $SRC
59echo Zipping...
60
61expandlines $SRC/distrib/msw/generic.rsp temp.txt
62zip -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
63
64expandlines $SRC/distrib/msw/mac.rsp temp.txt
65zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
66
67expandlines $SRC/distrib/msw/cw.rsp temp.txt
68zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
69
70expandlines $SRC/distrib/msw/tiff.rsp temp.txt
71zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
72
73expandlines $SRC/distrib/msw/jpeg.rsp temp.txt
74zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
75
76expandlines $SRC/distrib/msw/tex2rtf.rsp temp.txt
77zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
78
79expandlines $SRC/distrib/msw/dialoged.rsp temp.txt
80zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
81
82expandlines $SRC/distrib/msw/ogl.rsp temp.txt
83zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
84
85expandlines $SRC/distrib/msw/xml.rsp temp.txt
86zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
87
88expandlines $SRC/distrib/msw/wx_html.rsp temp.txt
89zip -@ `$CYGPATHPROGW $DEST/wxWindows-$VERSION-HTML.zip` < temp.txt
90
91rm -f temp.txt
92
93echo wxWindows archived.
94