]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tardist
Corrected some casting errors -> XtPointer
[wxWidgets.git] / distrib / msw / tardist
CommitLineData
33b64e6f
JS
1#!/bin/sh
2# tardist: make up a tar.gz distribution of wxWindows 2
3# Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
4
7a5e6267
JS
5# We can't use e.g. this:
6# ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWindows-$VERSION-gen.zip
7# because there's not enough space on the command line, plus we need to ignore the
8# blank lines.
9
10expandlines()
11{
12 toexpand=$1
13 outputfile=$2
14
15 rm -f $outputfile
16 touch $outputfile
17 for line in `cat $toexpand` ; do
84c9e2f8 18 if [ "$line" != "" ]; then
7a5e6267
JS
19 ls $line >> $outputfile
20 fi
21 done
22}
23
24
33b64e6f 25init=""
84c9e2f8 26if [ "$1" = "" ]
33b64e6f 27then
84c9e2f8 28 echo Usage: tardist wx-dir output-dir version
33b64e6f
JS
29 exit
30fi
31
84c9e2f8 32if [ "$2" = "" ]
33b64e6f 33then
84c9e2f8 34 echo Usage: tardist wx-dir output-dir version
33b64e6f
JS
35 exit
36fi
37
84c9e2f8
JS
38if [ "$3" = "" ]
39then
40 echo Usage: tardist wx-dir output-dir version
41 exit
42fi
43
44WXVER=$3
45
33b64e6f
JS
46echo About to archive wxWindows:
47echo From $1
48echo To $2
49echo CTRL-C if this is not correct.
50read dummy
51
52cd $1
53
54echo Removing backup files...
55rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
56
d7dcb939
JS
57rm -f $2/wx*-${WXVER}*.tgz
58rm -f $2/tex2rtf2-*.tgz
59rm -f $2/dialoged-*.tgz
60rm -f $2/ogl3-*.tgz
61rm -f $2/jpeg-*.tgz
62rm -f $2/tiff-*.tgz
63rm -f $2/stc-*.tgz
64rm -f $2/canvas-*.tgz
65rm -f $2/contrib-*.tgz
66rm -f $2/applet-*.tgz
33b64e6f
JS
67
68echo Tarring...
69
b69f1bd1 70### Generic
13bf613e 71ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgen.txt
84c9e2f8
JS
72tar cvf $2/wxWindows-${WXVER}-gen.tar -T /tmp/wxgen.txt
73gzip $2/wxWindows-${WXVER}-gen.tar
74mv $2/wxWindows-${WXVER}-gen.tar.gz $2/wxWindows-${WXVER}-gen.tgz
b69f1bd1 75
33b64e6f 76### wxGTK
d7dcb939
JS
77ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/gtk.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` > /tmp/wxgtk.txt
78tar cvf $2/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt
79gzip $2/wxGTK-${WXVER}.tar
80mv $2/wxGTK-${WXVER}.tar.gz $2/wxGTK-${WXVER}.tgz
33b64e6f
JS
81
82### wxMotif
d7dcb939 83ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` > /tmp/wxmotif.txt
84c9e2f8 84tar cvf $2/wxWindows-${WXVER}-mot.tar -T /tmp/wxmotif.txt
d7dcb939
JS
85gzip $2/wxMotif-${WXVER}.tar
86mv $2/wxMotif-${WXVER}.tar.gz $2/wxMotif-${WXVER}.tgz
33b64e6f 87
13bf613e 88### wxMSW
d7dcb939
JS
89ls `cat $1/distrib/msw/msw.rsp $1/distrib/msw/vc.rsp $1/distrib/msw/bc.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` > /tmp/wxmsw.txt
90tar cvf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
91gzip $2/wxMSW-${WXVER}.tar
92mv $2/wxMSW-${WXVER}.tar.gz $2/wxMSW-${WXVER}.tgz
13bf613e 93
33b64e6f
JS
94### Doc sources
95ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt
84c9e2f8
JS
96tar cvf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
97gzip $2/wxWindows-${WXVER}-doc.tar
98mv $2/wxWindows-${WXVER}-doc.tar.gz $2/wxWindows-${WXVER}-doc.tgz
33b64e6f
JS
99
100### HTML docs
101ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
84c9e2f8
JS
102tar cvf $2/wxWindows-${WXVER}-htm.tar -T /tmp/html.txt
103gzip $2/wxWindows-${WXVER}-htm.tar
104mv $2/wxWindows-${WXVER}-htm.tar.gz $2/wxWindows-${WXVER}-htm.tgz
33b64e6f
JS
105
106### PDF docs
107ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
84c9e2f8
JS
108tar cvf $2/wxWindows-${WXVER}-pdf.tar -T /tmp/pdf.txt
109gzip $2/wxWindows-${WXVER}-pdf.tar
110mv $2/wxWindows-${WXVER}-pdf.tar.gz $2/wxWindows-${WXVER}-pdf.tgz
33b64e6f
JS
111
112### Stubs files
d7dcb939
JS
113#ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
114#tar cvf $2/wxWindows-${WXVER}-stubs.tar -T /tmp/stubs.txt
115#gzip $2/wxWindows-${WXVER}-stubs.tar
116#mv $2/wxWindows-${WXVER}-stubs.tar.gz $2/wxWindows-${WXVER}-stubs.tgz
33b64e6f
JS
117
118### Tex2RTF
119ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
d7dcb939
JS
120tar cvf $2/tex2rtf2-${WXVER}.tar -T /tmp/tex2rtf.txt
121gzip $2/tex2rtf2-${WXVER}.tar
122mv $2/tex2rtf2-${WXVER}.tar.gz $2/tex2rtf2-${WXVER}.tgz
33b64e6f
JS
123
124### OGL
125ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
d7dcb939
JS
126tar cvf $2/ogl3-${WXVER}.tar -T /tmp/ogl.txt
127gzip $2/ogl3-${WXVER}.tar
128mv $2/ogl3-${WXVER}.tar.gz $2/ogl3-${WXVER}.tgz
33b64e6f 129
75737d05
JS
130### JPEG
131ls `cat $1/distrib/msw/jpeg.rsp` > /tmp/jpeg.txt
d7dcb939
JS
132tar cvf $2/jpeg-${WXVER}.tar -T /tmp/jpeg.txt
133gzip $2/jpeg-${WXVER}.tar
134mv $2/jpeg-${WXVER}.tar.gz $2/jpeg-${WXVER}.tgz
75737d05 135
f6bcfd97
BP
136### TIFF
137ls `cat $1/distrib/msw/tiff.rsp` > /tmp/tiff.txt
d7dcb939
JS
138tar cvf $2/tiff-${WXVER}.tar -T /tmp/tiff.txt
139gzip $2/tiff-${WXVER}.tar
140mv $2/tiff-${WXVER}.tar.gz $2/tiff-${WXVER}.tgz
f6bcfd97 141
33b64e6f 142echo Done!