]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tardist
fix bug with treectrl sample
[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
332b8edb
JS
10TAR=tar
11ARCH=`arch`
12if [ "$ARCH" = "ppc" ]; then
13 TAR=gnutar
14fi
15
7a5e6267
JS
16expandlines()
17{
18 toexpand=$1
19 outputfile=$2
20
21 rm -f $outputfile
22 touch $outputfile
23 for line in `cat $toexpand` ; do
84c9e2f8 24 if [ "$line" != "" ]; then
7a5e6267
JS
25 ls $line >> $outputfile
26 fi
8f8edad8
JS
27 uniq < $outputfile > /tmp/uniqtemp.txt
28 mv /tmp/uniqtemp.txt $outputfile
7a5e6267
JS
29 done
30}
31
2b5f62a0
VZ
32doinit()
33{
34 cd $WXSRC
35 echo Removing backup files...
36 rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
37
38 rm -f $WXDEST/wx*-${WXVER}*.tar.gz
39 # Copy setup files
40 cp $WXSRC/include/wx/os2/SETUP0.H $WXSRC/include/wx/os2/setup.h
41 cp $WXSRC/include/wx/msw/setup0.h $WXSRC/include/wx/msw/setup.h
42 cp $WXSRC/include/wx/univ/setup0.h $WXSRC/include/wx/univ/setup.h
43
44 # Copy readme and other files
45
46 cp $WXSRC/docs/readme.txt $WXDEST/readme-${WXVER}.txt
47 cp $WXSRC/docs/changes.txt $WXDEST/changes-${WXVER}.txt
48 cp $WXSRC/docs/mgl/readme.txt $WXDEST/readme-mgl-${WXVER}.txt
49 cp $WXSRC/docs/mgl/install.txt $WXDEST/install-mgl-${WXVER}.txt
50 cp $WXSRC/docs/x11/readme.txt $WXDEST/readme-x11-${WXVER}.txt
51 cp $WXSRC/docs/x11/readme-nanox.txt $WXDEST/readme-nanox-${WXVER}.txt
52 cp $WXSRC/docs/x11/install.txt $WXDEST/install-x11-${WXVER}.txt
53 cp $WXSRC/docs/motif/readme.txt $WXDEST/readme-motif-${WXVER}.txt
54 cp $WXSRC/docs/motif/install.txt $WXDEST/install-motif-${WXVER}.txt
55 cp $WXSRC/docs/msw/readme.txt $WXDEST/readme-msw-${WXVER}.txt
56 cp $WXSRC/docs/msw/install.txt $WXDEST/install-msw-${WXVER}.txt
57 cp $WXSRC/docs/gtk/readme.txt $WXDEST/readme-gtk-${WXVER}.txt
58 cp $WXSRC/docs/gtk/install.txt $WXDEST/install-gtk-${WXVER}.txt
59 cp $WXSRC/docs/mac/readme.txt $WXDEST/readme-mac-${WXVER}.txt
60 cp $WXSRC/docs/mac/install.txt $WXDEST/install-mac-${WXVER}.txt
61 cp $WXSRC/docs/os2/install.txt $WXDEST/install-os2-${WXVER}.txt
62}
7a5e6267 63
2b5f62a0
VZ
64dospinwxgtk()
65{
66echo Tarring wxGTK...
b69f1bd1 67
2b5f62a0
VZ
68cd $WXSRC
69cat $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/utils.rsp $WXSRC/distrib/msw/ogl.rsp $WXSRC/distrib/msw/tex2rtf.rsp $WXSRC/distrib/msw/dialoged.rsp $WXSRC/distrib/msw/gtk.rsp $WXSRC/distrib/msw/makefile.rsp $WXSRC/distrib/msw/tiff.rsp $WXSRC/distrib/msw/jpeg.rsp > /tmp/wxgtk_in.txt
8f8edad8 70expandlines /tmp/wxgtk_in.txt /tmp/wxgtk.txt
2b5f62a0 71$TAR cf $WXDEST/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt
332b8edb
JS
72
73echo Re-tarring wxGTK in a subdirectory...
2b5f62a0
VZ
74cd $WXDEST
75mkdir wxGTK-${WXVER}
76cd wxGTK-${WXVER}
332b8edb
JS
77$TAR xf ../wxGTK-${WXVER}.tar
78cd ..
79rm -f wxGTK-${WXVER}.tar
2b5f62a0
VZ
80$TAR cf $WXDEST/wxGTK-${WXVER}.tar wxGTK-${WXVER}/*
81rm -f -r wxGTK-${WXVER}
82gzip $WXDEST/wxGTK-${WXVER}.tar
83}
84
85dospinwxmotif()
86{
87echo Tarring wxMotif...
33b64e6f 88
2b5f62a0
VZ
89cd $WXSRC
90cat $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/motif.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/ogl.rsp $WXSRC/distrib/msw/makefile.rsp $WXSRC/distrib/msw/tiff.rsp $WXSRC/distrib/msw/jpeg.rsp > /tmp/wxmotif_in.txt
8f8edad8 91expandlines /tmp/wxmotif_in.txt /tmp/wxmotif.txt
2b5f62a0 92$TAR cf $WXDEST/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt
332b8edb
JS
93
94echo Re-tarring wxMotif in a subdirectory...
2b5f62a0
VZ
95cd $WXDEST
96mkdir wxMotif-${WXVER}
97cd wxMotif-${WXVER}
332b8edb
JS
98$TAR xf ../wxMotif-${WXVER}.tar
99cd ..
100rm -f wxMotif-${WXVER}.tar
2b5f62a0
VZ
101$TAR cf $WXDEST/wxMotif-${WXVER}.tar wxMotif-${WXVER}/*
102rm -f -r wxMotif-${WXVER}
103gzip $WXDEST/wxMotif-${WXVER}.tar
104}
105
106dospinwxx11()
107{
108echo Tarring wxX11...
33b64e6f 109
4869c7db 110### wxX11: combined wxMotif and wxX11 distributions
2b5f62a0
VZ
111cd $WXSRC
112cat $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/motif.rsp $WXSRC/distrib/msw/x11.rsp $WXSRC/distrib/msw/univ.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/utils.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/dialoged.rsp $WXSRC/distrib/msw/ogl.rsp $WXSRC/distrib/msw/makefile.rsp $WXSRC/distrib/msw/tiff.rsp $WXSRC/distrib/msw/jpeg.rsp > /tmp/wxx11_in.txt
8f8edad8 113expandlines /tmp/wxx11_in.txt /tmp/wxx11.txt
2b5f62a0 114$TAR cf $WXDEST/wxX11-${WXVER}.tar -T /tmp/wxx11.txt
332b8edb
JS
115
116echo Re-tarring wxX11 in a subdirectory...
2b5f62a0
VZ
117cd $WXDEST
118mkdir wxX11-${WXVER}
119cd wxX11-${WXVER}
332b8edb
JS
120$TAR xf ../wxX11-${WXVER}.tar
121cd ..
122rm -f wxX11-${WXVER}.tar
2b5f62a0
VZ
123$TAR cf $WXDEST/wxX11-${WXVER}.tar wxX11-${WXVER}/*
124rm -f -r wxX11-${WXVER}
125gzip $WXDEST/wxX11-${WXVER}.tar
126}
c2ff68d3 127
13bf613e 128### wxMSW
2b5f62a0
VZ
129# cd $WXSRC
130# cat $WXSRC/distrib/msw/msw.rsp $WXSRC/distrib/msw/vc.rsp $WXSRC/distrib/msw/bc.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/makefile.rsp $WXSRC/distrib/msw/tiff.rsp $WXSRC/distrib/msw/jpeg.rsp > /tmp/wxmsw_in.txt
8f8edad8 131# expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
2b5f62a0
VZ
132# $TAR cf $WXDEST/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
133# gzip $WXDEST/wxMSW-${WXVER}.tar
13bf613e 134
2b5f62a0
VZ
135dospinwxmac()
136{
137echo Tarring wxMac...
38be1092 138### wxMac
2b5f62a0
VZ
139cp $WXSRC/include/wx/mac/setup0.h $WXSRC/include/wx/setup.h
140cd $WXSRC
141cat $WXSRC/distrib/msw/mac.rsp $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/cw_mac.rsp $WXSRC/distrib/msw/tex2rtf.rsp $WXSRC/distrib/msw/utils.rsp $WXSRC/distrib/msw/dialoged.rsp $WXSRC/distrib/msw/ogl.rsp $WXSRC/distrib/msw/stc.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/makefile.rsp $WXSRC/distrib/msw/tiff.rsp $WXSRC/distrib/msw/jpeg.rsp > /tmp/wxmac_in.txt
8f8edad8 142expandlines /tmp/wxmac_in.txt /tmp/wxmac.txt
2b5f62a0 143$TAR cf $WXDEST/wxMac-${WXVER}.tar -T /tmp/wxmac.txt
332b8edb 144
2b5f62a0 145rm -f $WXSRC/include/wx/setup.h
c9b3918a 146
332b8edb 147echo Re-tarring wxMac in a subdirectory...
2b5f62a0
VZ
148cd $WXDEST
149mkdir wxMac-${WXVER}
150cd wxMac-${WXVER}
332b8edb 151$TAR xf ../wxMac-${WXVER}.tar
94d86127 152rm -f -r contrib/src/mmedia contrib/samples/mmedia
332b8edb
JS
153cd ..
154rm -f wxMac-${WXVER}.tar
2b5f62a0
VZ
155$TAR cf $WXDEST/wxMac-${WXVER}.tar wxMac-${WXVER}/*
156rm -f -r wxMac-${WXVER}
157gzip $WXDEST/wxMac-${WXVER}.tar
158}
38be1092 159
c5f59043 160### wxUniv: universal-specific files
2b5f62a0
VZ
161#cd $WXSRC
162#cat $WXSRC/distrib/msw/univ.rsp > /tmp/wxuniv_in.txt
163#expandlines /tmp/wxuniv_in.txt /tmp/wxuniv.txt
164#$TAR cf $WXDEST/wxWindows-${WXVER}-Univ.tar -T /tmp/wxuniv.txt
165#
166#echo Re-tarring wxUniversal in a subdirectory...
167#cd $WXDEST
168#mkdir wxWindows-${WXVER}
169#cd wxWindows-${WXVER}
170#$TAR xf ../wxWindows-${WXVER}-Univ.tar
171#cd ..
172#rm -f wxWindows-${WXVER}-Univ.tar
173#$TAR cf $WXDEST/wxWindows-${WXVER}-Univ.tar wxWindows-${WXVER}/*
174#rm -f -r wxWindows-${WXVER}
175#gzip $WXDEST/wxWindows-${WXVER}-Univ.tar
c5f59043 176
2b5f62a0
VZ
177dospinwxall()
178{
179echo Tarring wxAll...
c5f59043 180
6b978929 181### wxAll: all distributions in one giant archive
2b5f62a0
VZ
182cd $WXSRC
183cat $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/msw.rsp $WXSRC/distrib/msw/vc.rsp $WXSRC/distrib/msw/cw.rsp $WXSRC/distrib/msw/cw_mac.rsp $WXSRC/distrib/msw/gtk.rsp $WXSRC/distrib/msw/x11.rsp $WXSRC/distrib/msw/motif.rsp $WXSRC/distrib/msw/mac.rsp $WXSRC/distrib/msw/os2.rsp $WXSRC/distrib/msw/x11.rsp $WXSRC/distrib/msw/univ.rsp $WXSRC/distrib/msw/mgl.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/utilmake.rsp $WXSRC/distrib/msw/utils.rsp $WXSRC/distrib/msw/mmedia.rsp $WXSRC/distrib/msw/tex2rtf.rsp $WXSRC/distrib/msw/stc.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/dialoged.rsp $WXSRC/distrib/msw/ogl.rsp $WXSRC/distrib/msw/makefile.rsp $WXSRC/distrib/msw/tiff.rsp $WXSRC/distrib/msw/jpeg.rsp $WXSRC/distrib/msw/docsrc.rsp | uniq > /tmp/wxall_in.txt
6b978929 184expandlines /tmp/wxall_in.txt /tmp/wxall.txt
2b5f62a0 185$TAR cf $WXDEST/wxAll-${WXVER}.tar -T /tmp/wxall.txt
6b978929
JS
186
187echo Re-tarring wxAll in a subdirectory...
2b5f62a0 188cd $WXDEST
6b978929 189mkdir wxWindows-${WXVER}
56409860
JS
190
191# If we have the full set of VC++ project files,
192# get them
2b5f62a0
VZ
193if [ -f $WXDEST/extra/wxWindows-${WXVER}-VC.zip ]; then
194 unzip -o $WXDEST/extra/wxWindows-${WXVER}-VC.zip
56409860 195else
2b5f62a0 196 echo "Warning - did not find $WXDEST/deliver/extra/wxWindows-${WXVER}-VC.zip"
56409860
JS
197fi
198
6b978929 199cd wxWindows-${WXVER}
2c00930d 200$TAR xf ../wxAll-${WXVER}.tar
c721300b
JS
201
202# Translate all .dsp and .dsw files to DOS format
2b5f62a0 203unix2dos --unix2dos `cat $WXSRC/distrib/msw/vc.rsp`
c721300b 204
2c00930d 205# Copy OS/2 specific configure files
2b5f62a0 206cp $WXSRC/distrib/os2/os2-specific.zip docs/os2
2c00930d 207
c721300b
JS
208# Copy the OS/2 files which probably haven't been copied yet
209mkdir include/wx/os2
210mkdir src/os2
2b5f62a0
VZ
211cp $WXSRC/include/wx/os2/*.H include/wx/os2
212cp $WXSRC/src/os2/*.CPP $WXSRC/src/os2/*.I src/os2
c721300b
JS
213
214# Make all OS/2 files lower case
2b5f62a0
VZ
215$WXSRC/distrib/msw/namedown include/wx/os2/*.H
216$WXSRC/distrib/msw/namedown src/os2/*.CPP src/os2/*.I
c721300b 217
6b978929
JS
218cd ..
219rm -f wxAll-${WXVER}.tar
2b5f62a0 220$TAR cf $WXDEST/wxAll-${WXVER}.tar wxWindows-${WXVER}/*
6b978929 221rm -f -r wxWindows-${WXVER}
2b5f62a0
VZ
222gzip $WXDEST/wxAll-${WXVER}.tar
223}
6b978929 224
2b5f62a0
VZ
225dospinwxdocs()
226{
227echo Tarring wxDocs...
6b978929 228
33b64e6f 229### Doc sources
2b5f62a0
VZ
230#cd $WXSRC
231#cat $WXSRC/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
94d86127 232#expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
2b5f62a0 233#$TAR cf $WXDEST/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
94d86127
JS
234#
235#echo Re-tarring docs in a subdirectory...
2b5f62a0 236#cd $WXDEST
94d86127
JS
237#mkdir wxWindows-${WXVER}
238#cd wxWindows-${WXVER}
239#$TAR xf ../wxWindows-${WXVER}-doc.tar
240#cd ..
241#rm -f wxWindows-${WXVER}-doc.tar
2b5f62a0 242#$TAR cf $WXDEST/wxWindows-${WXVER}-doc.tar wxWindows-${WXVER}/*
94d86127 243#rm -f -r wxWindows-${WXVER}
2b5f62a0 244#gzip $WXDEST/wxWindows-${WXVER}-doc.tar
33b64e6f
JS
245
246### HTML docs
2b5f62a0
VZ
247cd $WXSRC
248cat $WXSRC/distrib/msw/wx_html.rsp > /tmp/html_in.txt
8f8edad8 249expandlines /tmp/html_in.txt /tmp/html.txt
2b5f62a0 250$TAR cf $WXDEST/wxWindows-${WXVER}-HTML.tar -T /tmp/html.txt
332b8edb
JS
251
252echo Re-tarring HTML in a subdirectory...
2b5f62a0 253cd $WXDEST
332b8edb
JS
254mkdir wxWindows-${WXVER}
255cd wxWindows-${WXVER}
e492150d 256$TAR xf ../wxWindows-${WXVER}-HTML.tar
332b8edb 257cd ..
e492150d 258rm -f wxWindows-${WXVER}-HTML.tar
2b5f62a0 259$TAR cf $WXDEST/wxWindows-${WXVER}-HTML.tar wxWindows-${WXVER}/*
332b8edb 260rm -f -r wxWindows-${WXVER}
2b5f62a0 261gzip $WXDEST/wxWindows-${WXVER}-HTML.tar
33b64e6f 262
94d86127 263### HTB docs
2b5f62a0
VZ
264cd $WXSRC
265cat $WXSRC/distrib/msw/wx_htb.rsp > /tmp/htb_in.txt
94d86127 266expandlines /tmp/htb_in.txt /tmp/htb.txt
2b5f62a0 267$TAR cf $WXDEST/wxWindows-${WXVER}-HTB.tar -T /tmp/htb.txt
94d86127
JS
268
269echo Re-tarring HTB in a subdirectory...
2b5f62a0 270cd $WXDEST
94d86127
JS
271mkdir wxWindows-${WXVER}
272cd wxWindows-${WXVER}
e492150d 273$TAR xf ../wxWindows-${WXVER}-HTB.tar
94d86127 274cd ..
e492150d 275rm -f wxWindows-${WXVER}-HTB.tar
2b5f62a0 276$TAR cf $WXDEST/wxWindows-${WXVER}-HTB.tar wxWindows-${WXVER}/*
94d86127 277rm -f -r wxWindows-${WXVER}
2b5f62a0 278gzip $WXDEST/wxWindows-${WXVER}-HTB.tar
94d86127 279
33b64e6f 280### PDF docs
2b5f62a0
VZ
281cd $WXSRC
282cat $WXSRC/distrib/msw/wx_pdf.rsp > /tmp/pdf_in.txt
8f8edad8 283expandlines /tmp/pdf_in.txt /tmp/pdf.txt
2b5f62a0 284$TAR cf $WXDEST/wxWindows-${WXVER}-PDF.tar -T /tmp/pdf.txt
332b8edb
JS
285
286echo Re-tarring PDF in a subdirectory...
2b5f62a0 287cd $WXDEST
332b8edb
JS
288mkdir wxWindows-${WXVER}
289cd wxWindows-${WXVER}
e492150d 290$TAR xf ../wxWindows-${WXVER}-PDF.tar
332b8edb 291cd ..
e492150d 292rm -f wxWindows-${WXVER}-PDF.tar
2b5f62a0 293$TAR cf $WXDEST/wxWindows-${WXVER}-PDF.tar wxWindows-${WXVER}/*
332b8edb 294rm -f -r wxWindows-${WXVER}
2b5f62a0
VZ
295gzip $WXDEST/wxWindows-${WXVER}-PDF.tar
296}
33b64e6f 297
33b64e6f 298### Tex2RTF
2b5f62a0
VZ
299#cd $WXSRC
300#cat $WXSRC/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
94d86127 301#expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
2b5f62a0 302#$TAR cf $WXDEST/wxWindows-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
94d86127
JS
303#
304#echo Re-tarring Tex2RTF in a subdirectory...
2b5f62a0 305#cd $WXDEST
94d86127
JS
306#mkdir wxWindows-${WXVER}
307#cd wxWindows-${WXVER}
308#$TAR xf ../wxWindows-${WXVER}-tex2rtf.tar
309#cd ..
310#rm -f wxWindows-${WXVER}-tex2rtf.tar
2b5f62a0 311#$TAR cf $WXDEST/wxWindows-${WXVER}-tex2rtf.tar wxWindows-${WXVER}/*
94d86127 312#rm -f -r wxWindows-${WXVER}
2b5f62a0 313#gzip $WXDEST/wxWindows-${WXVER}-tex2rtf.tar
33b64e6f
JS
314
315### OGL
2b5f62a0
VZ
316#cd $WXSRC
317#cat $WXSRC/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
94d86127 318#expandlines /tmp/ogl_in.txt /tmp/ogl.txt
2b5f62a0 319#$TAR cf $WXDEST/wxWindows-${WXVER}-ogl.tar -T /tmp/ogl.txt
94d86127
JS
320#
321#echo Re-tarring OGL in a subdirectory...
2b5f62a0 322#cd $WXDEST
94d86127
JS
323#mkdir wxWindows-${WXVER}
324#cd wxWindows-${WXVER}
325#$TAR xf ../wxWindows-${WXVER}-ogl.tar
326#cd ..
327#rm -f wxWindows-${WXVER}-ogl.tar
2b5f62a0 328#$TAR cf $WXDEST/wxWindows-${WXVER}-ogl.tar wxWindows-${WXVER}/*
94d86127 329#rm -f -r wxWindows-${WXVER}
2b5f62a0 330#gzip $WXDEST/wxWindows-${WXVER}-ogl.tar
33b64e6f 331
75737d05 332### JPEG
2b5f62a0
VZ
333#cd $WXSRC
334#cat $WXSRC/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
94d86127 335#expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
2b5f62a0 336#$TAR cf $WXDEST/wxWindows-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
94d86127
JS
337#
338#echo Re-tarring jpeg in a subdirectory...
2b5f62a0 339#cd $WXDEST
94d86127
JS
340#mkdir wxWindows-${WXVER}
341#cd wxWindows-${WXVER}
342#$TAR xf ../wxWindows-${WXVER}-jpeg.tar
343#cd ..
344#rm -f wxWindows-${WXVER}-jpeg.tar
2b5f62a0 345#$TAR cf $WXDEST/wxWindows-${WXVER}-jpeg.tar wxWindows-${WXVER}/*
94d86127 346#rm -f -r wxWindows-${WXVER}
2b5f62a0 347#gzip $WXDEST/wxWindows-${WXVER}-jpeg.tar
75737d05 348
f6bcfd97 349### TIFF
2b5f62a0
VZ
350#cd $WXSRC
351#cat $WXSRC/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
94d86127 352#expandlines /tmp/tiff_in.txt /tmp/tiff.txt
2b5f62a0 353#$TAR cf $WXDEST/wxWindows-${WXVER}-tiff.tar -T /tmp/tiff.txt
94d86127
JS
354#
355#echo Re-tarring docs in a subdirectory...
2b5f62a0 356#cd $WXDEST
94d86127
JS
357#mkdir wxWindows-${WXVER}
358#cd wxWindows-${WXVER}
359#$TAR xf ../wxWindows-${WXVER}-tiff.tar
360#cd ..
361#rm -f wxWindows-${WXVER}-tiff.tar
2b5f62a0 362#$TAR cf $WXDEST/wxWindows-${WXVER}-tiff.tar wxWindows-${WXVER}/*
94d86127 363#rm -f -r wxWindows-${WXVER}
2b5f62a0
VZ
364#gzip $WXDEST/wxWindows-${WXVER}-tiff.tar
365
366init=""
367if [ "$1" = "" ]
368then
369 echo Usage: tardist wx-dir output-dir version
370 exit
371fi
372
373if [ "$2" = "" ]
374then
375 echo Usage: tardist wx-dir output-dir version
376 exit
377fi
378
379if [ "$3" = "" ]
380then
381 echo Usage: tardist wx-dir output-dir version
382 exit
383fi
384
385PROGNAME=$0
386WXSRC=$1
387WXDEST=$2
388WXVER=$3
389
390SPINWXALL=0
391SPINWXX11=0
392SPINWXGTK=0
393SPINWXMOTIF=0
394SPINWXMAC=0
395SPINWXDOCS=0
396SPINEVERYTHING=0
397
398usage()
399{
400 echo Usage: $PROGNAME "src-dir dest-dir version-number [ options ]"
401 echo Options:
402 echo " --help Display this help message"
403 echo " --wxall Spin wxAll"
404 echo " --wxgtk Spin wxGTK"
405 echo " --wxmotif Spin wxMotif"
406 echo " --wxmac Spin wxMac"
407 echo " --wxx11 Spin wxX11"
408 echo " --wxdocs Spin docs"
409 echo " --all Spin EVERYTHING"
410
411 exit 1
412}
413
414# Process command line options.
415shift 3
416for i in "$@"; do
417 case "$i" in
418 --wxall) SPINWXALL=1 ;;
419 --wxx11) SPINWXX11=1 ;;
420 --wxgtk) SPINWXGTK=1 ;;
421 --wxmotif) SPINWXMOTIF=1 ;;
422 --wxmac) SPINWXMAC=1 ;;
423 --wxdocs) SPINWXDOCS=1 ;;
424 --all) SPINEVERYTHING=1 ;;
425 *)
426 usage
427 exit
428 ;;
429 esac
430done
431
432echo About to archive wxWindows:
433echo From $WXSRC
434echo To $WXDEST
435echo Version $WXVER
436echo CTRL-C if this is not correct.
437read dummy
438
439doinit
440
441if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
442 dospinwxx11
443fi
444
445if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
446 dospinwxgtk
447fi
448
449if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
450 dospinwxmac
451fi
452
453if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
454 dospinwxmotif
455fi
456
457if [ "$SPINWXDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
458 dospinwxdocs
459fi
460
461if [ "$SPINWXALL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
462 dospinwxall
463fi
464
465