]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/msw/tardist
Script updates
[wxWidgets.git] / distrib / msw / tardist
... / ...
CommitLineData
1#!/bin/sh
2# tardist: make up a tar.gz distribution of wxWidgets 2
3# Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
4
5# We can't use e.g. this:
6# ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWidgets-$VERSION-gen.zip
7# because there's not enough space on the command line, plus we need to ignore the
8# blank lines.
9
10TAR=tar
11ARCH=`arch`
12if [ "$ARCH" = "ppc" ]; then
13 TAR=gnutar
14fi
15
16expandlines()
17{
18 toexpand=$1
19 outputfile=$2
20
21 rm -f $outputfile
22 touch $outputfile
23 for line in `cat $toexpand` ; do
24 if [ "$line" != "" ]; then
25 ls $line >> $outputfile
26 fi
27 uniq < $outputfile > /tmp/uniqtemp.txt
28 mv /tmp/uniqtemp.txt $outputfile
29 done
30}
31
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
49 cp $WXSRC/docs/mgl/readme.txt $WXDEST/readme-mgl-${WXVER}.txt
50 cp $WXSRC/docs/mgl/install.txt $WXDEST/install-mgl-${WXVER}.txt
51
52 cp $WXSRC/docs/x11/readme.txt $WXDEST/readme-x11-${WXVER}.txt
53# cp $WXSRC/docs/x11/readme-nanox.txt $WXDEST/readme-nanox-${WXVER}.txt
54 cp $WXSRC/docs/x11/install.txt $WXDEST/install-x11-${WXVER}.txt
55
56 cp $WXSRC/docs/motif/readme.txt $WXDEST/readme-motif-${WXVER}.txt
57 cp $WXSRC/docs/motif/install.txt $WXDEST/install-motif-${WXVER}.txt
58
59 cp $WXSRC/docs/msw/readme.txt $WXDEST/readme-msw-${WXVER}.txt
60 cp $WXSRC/docs/msw/install.txt $WXDEST/install-msw-${WXVER}.txt
61
62 cp $WXSRC/docs/gtk/readme.txt $WXDEST/readme-gtk-${WXVER}.txt
63 cp $WXSRC/docs/gtk/install.txt $WXDEST/install-gtk-${WXVER}.txt
64
65 cp $WXSRC/docs/mac/readme.txt $WXDEST/readme-mac-${WXVER}.txt
66 cp $WXSRC/docs/mac/install.txt $WXDEST/install-mac-${WXVER}.txt
67
68 cp $WXSRC/docs/cocoa/readme.txt $WXDEST/readme-cocoa-${WXVER}.txt
69 cp $WXSRC/docs/cocoa/install.txt $WXDEST/install-cocoa-${WXVER}.txt
70
71 cp $WXSRC/docs/os2/install.txt $WXDEST/install-os2-${WXVER}.txt
72
73 # Make .mo files
74 cd $WXSRC/locale
75 make allmo
76}
77
78dospinwxgtk()
79{
80echo Tarring wxGTK...
81
82cd $WXSRC
83cat $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/deprecated.rsp $WXSRC/distrib/msw/stc.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/utils.rsp $WXSRC/distrib/msw/ogl.rsp $WXSRC/distrib/msw/tex2rtf.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
84expandlines /tmp/wxgtk_in.txt /tmp/wxgtk.txt
85$TAR cf $WXDEST/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt
86
87echo Re-tarring wxGTK in a subdirectory...
88cd $WXDEST
89mkdir wxGTK-${WXVER}
90cd wxGTK-${WXVER}
91$TAR xf ../wxGTK-${WXVER}.tar
92echo Copying readme files...
93cp $WXSRC/docs/gtk/readme.txt README-GTK.txt
94cp $WXSRC/docs/gtk/install.txt INSTALL-GTK.txt
95cp $WXSRC/docs/readme.txt README.txt
96cp $WXSRC/docs/changes.txt CHANGES.txt
97cp $WXSRC/docs/licence.txt LICENCE.txt
98cp $WXSRC/docs/lgpl.txt COPYING.LIB
99cd ..
100rm -f wxGTK-${WXVER}.tar
101$TAR cf $WXDEST/wxGTK-${WXVER}.tar wxGTK-${WXVER}/*
102rm -f -r wxGTK-${WXVER}
103gzip $WXDEST/wxGTK-${WXVER}.tar
104}
105
106dospinwxmotif()
107{
108echo Tarring wxMotif...
109
110cd $WXSRC
111cat $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/motif.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/deprecated.rsp $WXSRC/distrib/msw/stc.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
112expandlines /tmp/wxmotif_in.txt /tmp/wxmotif.txt
113$TAR cf $WXDEST/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt
114
115echo Re-tarring wxMotif in a subdirectory...
116cd $WXDEST
117mkdir wxMotif-${WXVER}
118cd wxMotif-${WXVER}
119$TAR xf ../wxMotif-${WXVER}.tar
120echo Copying readme files...
121cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt
122cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt
123cp $WXSRC/docs/readme.txt README.txt
124cp $WXSRC/docs/changes.txt CHANGES.txt
125cp $WXSRC/docs/licence.txt LICENCE.txt
126cp $WXSRC/docs/lgpl.txt COPYING.LIB
127cd ..
128rm -f wxMotif-${WXVER}.tar
129$TAR cf $WXDEST/wxMotif-${WXVER}.tar wxMotif-${WXVER}/*
130rm -f -r wxMotif-${WXVER}
131gzip $WXDEST/wxMotif-${WXVER}.tar
132}
133
134dospinwxx11()
135{
136echo Tarring wxX11...
137
138### wxX11: combined wxMotif and wxX11 distributions
139cd $WXSRC
140cat $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/deprecated.rsp $WXSRC/distrib/msw/stc.rsp $WXSRC/distrib/msw/utils.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/wxx11_in.txt
141expandlines /tmp/wxx11_in.txt /tmp/wxx11.txt
142$TAR cf $WXDEST/wxX11-${WXVER}.tar -T /tmp/wxx11.txt
143
144echo Re-tarring wxX11 in a subdirectory...
145cd $WXDEST
146mkdir wxX11-${WXVER}
147cd wxX11-${WXVER}
148$TAR xf ../wxX11-${WXVER}.tar
149echo Copying readme files...
150cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt
151cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt
152cp $WXSRC/docs/x11/readme.txt README-X11.txt
153cp $WXSRC/docs/x11/install.txt INSTALL-X11.txt
154cp $WXSRC/docs/readme.txt README.txt
155cp $WXSRC/docs/changes.txt CHANGES.txt
156cp $WXSRC/docs/licence.txt LICENCE.txt
157cp $WXSRC/docs/lgpl.txt COPYING.LIB
158cd ..
159rm -f wxX11-${WXVER}.tar
160$TAR cf $WXDEST/wxX11-${WXVER}.tar wxX11-${WXVER}/*
161rm -f -r wxX11-${WXVER}
162gzip $WXDEST/wxX11-${WXVER}.tar
163}
164
165### wxMSW
166# cd $WXSRC
167# cat $WXSRC/distrib/msw/msw.rsp $WXSRC/distrib/msw/vc.rsp $WXSRC/distrib/msw/bc.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/deprecated.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
168# expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
169# $TAR cf $WXDEST/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
170# gzip $WXDEST/wxMSW-${WXVER}.tar
171
172dospinwxmac()
173{
174echo Tarring wxMac...
175### wxMac
176cp $WXSRC/include/wx/mac/setup0.h $WXSRC/include/wx/setup.h
177cd $WXSRC
178cat $WXSRC/distrib/msw/mac.rsp $WXSRC/distrib/msw/cocoa.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/ogl.rsp $WXSRC/distrib/msw/stc.rsp $WXSRC/distrib/msw/xml.rsp $WXSRC/distrib/msw/contrib.rsp $WXSRC/distrib/msw/deprecated.rsp $WXSRC/distrib/msw/makefile.rsp $WXSRC/distrib/msw/tiff.rsp $WXSRC/distrib/msw/jpeg.rsp > /tmp/wxmac_in.txt
179expandlines /tmp/wxmac_in.txt /tmp/wxmac.txt
180$TAR cf $WXDEST/wxMac-${WXVER}.tar -T /tmp/wxmac.txt
181
182rm -f $WXSRC/include/wx/setup.h
183
184echo Re-tarring wxMac in a subdirectory...
185cd $WXDEST
186mkdir wxMac-${WXVER}
187cd wxMac-${WXVER}
188
189# If we have the full set of Mac CW project files,
190# get them
191if [ -f $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip ]; then
192 unzip -o $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip
193else
194 echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-CW-Mac.zip"
195fi
196
197$TAR xf ../wxMac-${WXVER}.tar
198rm -f -r contrib/src/mmedia contrib/samples/mmedia
199echo Copying readme files...
200cp $WXSRC/docs/mac/readme.txt README-MAC.txt
201cp $WXSRC/docs/mac/install.txt INSTALL-MAC.txt
202cp $WXSRC/docs/readme.txt README.txt
203cp $WXSRC/docs/changes.txt CHANGES.txt
204cp $WXSRC/docs/licence.txt LICENCE.txt
205cp $WXSRC/docs/lgpl.txt COPYING.LIB
206cd ..
207rm -f wxMac-${WXVER}.tar
208$TAR cf $WXDEST/wxMac-${WXVER}.tar wxMac-${WXVER}/*
209rm -f -r wxMac-${WXVER}
210gzip $WXDEST/wxMac-${WXVER}.tar
211}
212
213### wxUniv: universal-specific files
214#cd $WXSRC
215#cat $WXSRC/distrib/msw/univ.rsp > /tmp/wxuniv_in.txt
216#expandlines /tmp/wxuniv_in.txt /tmp/wxuniv.txt
217#$TAR cf $WXDEST/wxWidgets-${WXVER}-Univ.tar -T /tmp/wxuniv.txt
218#
219#echo Re-tarring wxUniversal in a subdirectory...
220#cd $WXDEST
221#mkdir wxWidgets-${WXVER}
222#cd wxWidgets-${WXVER}
223#$TAR xf ../wxWidgets-${WXVER}-Univ.tar
224#cd ..
225#rm -f wxWidgets-${WXVER}-Univ.tar
226#$TAR cf $WXDEST/wxWidgets-${WXVER}-Univ.tar wxWidgets-${WXVER}/*
227#rm -f -r wxWidgets-${WXVER}
228#gzip $WXDEST/wxWidgets-${WXVER}-Univ.tar
229
230dospinwxall()
231{
232echo Tarring wxAll...
233
234### wxAll: all distributions in one giant archive
235cd $WXSRC
236cat $WXSRC/distrib/msw/generic.rsp $WXSRC/distrib/msw/msw.rsp $WXSRC/distrib/msw/wince.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/cocoa.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/deprecated.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/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
237expandlines /tmp/wxall_in.txt /tmp/wxall.txt
238$TAR cf $WXDEST/wxAll-${WXVER}.tar -T /tmp/wxall.txt
239
240echo Re-tarring wxAll in a subdirectory...
241cd $WXDEST
242mkdir wxWidgets-${WXVER}
243
244cd wxWidgets-${WXVER}
245
246# If we have the full set of VC++ project files,
247# get them
248if [ -f $WXDEST/extra/wxWidgets-${WXVER}-VC.zip ]; then
249 unzip -o $WXDEST/extra/wxWidgets-${WXVER}-VC.zip
250else
251 echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-VC.zip"
252fi
253
254# If we have the full set of Mac CW project files,
255# get them
256if [ -f $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip ]; then
257 unzip -o $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip
258else
259 echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-CW-Mac.zip"
260fi
261
262$TAR xf ../wxAll-${WXVER}.tar
263
264# Translate all .dsp and .dsw files to DOS format
265unix2dos --unix2dos `cat $WXSRC/distrib/msw/vc.rsp`
266
267echo Copying readme files...
268cp $WXSRC/docs/readme.txt README.txt
269cp $WXSRC/docs/changes.txt CHANGES.txt
270cp $WXSRC/docs/licence.txt LICENCE.txt
271cp $WXSRC/docs/lgpl.txt COPYING.LIB
272cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt
273cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt
274cp $WXSRC/docs/x11/readme.txt README-X11.txt
275cp $WXSRC/docs/x11/install.txt INSTALL-X11.txt
276cp $WXSRC/docs/mac/readme.txt README-MAC.txt
277cp $WXSRC/docs/mac/install.txt INSTALL-MAC.txt
278cp $WXSRC/docs/mgl/readme.txt README-MGL.txt
279cp $WXSRC/docs/mgl/install.txt INSTALL-MGL.txt
280#cp $WXSRC/docs/os2/readme.txt README-OS2.txt
281cp $WXSRC/docs/os2/install.txt INSTALL-OS2.txt
282
283cd ..
284rm -f wxAll-${WXVER}.tar
285$TAR cf $WXDEST/wxAll-${WXVER}.tar wxWidgets-${WXVER}/*
286rm -f -r wxWidgets-${WXVER}
287gzip $WXDEST/wxAll-${WXVER}.tar
288}
289
290dospinwxdocs()
291{
292echo Tarring wxDocs...
293
294### Doc sources
295#cd $WXSRC
296#cat $WXSRC/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
297#expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
298#$TAR cf $WXDEST/wxWidgets-${WXVER}-doc.tar -T /tmp/docsrc.txt
299#
300#echo Re-tarring docs in a subdirectory...
301#cd $WXDEST
302#mkdir wxWidgets-${WXVER}
303#cd wxWidgets-${WXVER}
304#$TAR xf ../wxWidgets-${WXVER}-doc.tar
305#cd ..
306#rm -f wxWidgets-${WXVER}-doc.tar
307#$TAR cf $WXDEST/wxWidgets-${WXVER}-doc.tar wxWidgets-${WXVER}/*
308#rm -f -r wxWidgets-${WXVER}
309#gzip $WXDEST/wxWidgets-${WXVER}-doc.tar
310
311### HTML docs
312cd $WXSRC
313cat $WXSRC/distrib/msw/wx_html.rsp > /tmp/html_in.txt
314expandlines /tmp/html_in.txt /tmp/html.txt
315$TAR cf $WXDEST/wxWidgets-${WXVER}-HTML.tar -T /tmp/html.txt
316
317echo Re-tarring HTML in a subdirectory...
318cd $WXDEST
319mkdir wxWidgets-${WXVER}
320cd wxWidgets-${WXVER}
321$TAR xf ../wxWidgets-${WXVER}-HTML.tar
322cd ..
323rm -f wxWidgets-${WXVER}-HTML.tar
324$TAR cf $WXDEST/wxWidgets-${WXVER}-HTML.tar wxWidgets-${WXVER}/*
325rm -f -r wxWidgets-${WXVER}
326gzip $WXDEST/wxWidgets-${WXVER}-HTML.tar
327
328### HTB docs
329cd $WXSRC
330cat $WXSRC/distrib/msw/wx_htb.rsp > /tmp/htb_in.txt
331expandlines /tmp/htb_in.txt /tmp/htb.txt
332$TAR cf $WXDEST/wxWidgets-${WXVER}-HTB.tar -T /tmp/htb.txt
333
334echo Re-tarring HTB in a subdirectory...
335cd $WXDEST
336mkdir wxWidgets-${WXVER}
337cd wxWidgets-${WXVER}
338$TAR xf ../wxWidgets-${WXVER}-HTB.tar
339cd ..
340rm -f wxWidgets-${WXVER}-HTB.tar
341$TAR cf $WXDEST/wxWidgets-${WXVER}-HTB.tar wxWidgets-${WXVER}/*
342rm -f -r wxWidgets-${WXVER}
343gzip $WXDEST/wxWidgets-${WXVER}-HTB.tar
344
345### PDF docs
346cd $WXSRC
347cat $WXSRC/distrib/msw/wx_pdf.rsp > /tmp/pdf_in.txt
348expandlines /tmp/pdf_in.txt /tmp/pdf.txt
349$TAR cf $WXDEST/wxWidgets-${WXVER}-PDF.tar -T /tmp/pdf.txt
350
351echo Re-tarring PDF in a subdirectory...
352cd $WXDEST
353mkdir wxWidgets-${WXVER}
354cd wxWidgets-${WXVER}
355$TAR xf ../wxWidgets-${WXVER}-PDF.tar
356cd ..
357rm -f wxWidgets-${WXVER}-PDF.tar
358$TAR cf $WXDEST/wxWidgets-${WXVER}-PDF.tar wxWidgets-${WXVER}/*
359rm -f -r wxWidgets-${WXVER}
360gzip $WXDEST/wxWidgets-${WXVER}-PDF.tar
361}
362
363### Tex2RTF
364#cd $WXSRC
365#cat $WXSRC/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
366#expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
367#$TAR cf $WXDEST/wxWidgets-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
368#
369#echo Re-tarring Tex2RTF in a subdirectory...
370#cd $WXDEST
371#mkdir wxWidgets-${WXVER}
372#cd wxWidgets-${WXVER}
373#$TAR xf ../wxWidgets-${WXVER}-tex2rtf.tar
374#cd ..
375#rm -f wxWidgets-${WXVER}-tex2rtf.tar
376#$TAR cf $WXDEST/wxWidgets-${WXVER}-tex2rtf.tar wxWidgets-${WXVER}/*
377#rm -f -r wxWidgets-${WXVER}
378#gzip $WXDEST/wxWidgets-${WXVER}-tex2rtf.tar
379
380### OGL
381#cd $WXSRC
382#cat $WXSRC/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
383#expandlines /tmp/ogl_in.txt /tmp/ogl.txt
384#$TAR cf $WXDEST/wxWidgets-${WXVER}-ogl.tar -T /tmp/ogl.txt
385#
386#echo Re-tarring OGL in a subdirectory...
387#cd $WXDEST
388#mkdir wxWidgets-${WXVER}
389#cd wxWidgets-${WXVER}
390#$TAR xf ../wxWidgets-${WXVER}-ogl.tar
391#cd ..
392#rm -f wxWidgets-${WXVER}-ogl.tar
393#$TAR cf $WXDEST/wxWidgets-${WXVER}-ogl.tar wxWidgets-${WXVER}/*
394#rm -f -r wxWidgets-${WXVER}
395#gzip $WXDEST/wxWidgets-${WXVER}-ogl.tar
396
397### JPEG
398#cd $WXSRC
399#cat $WXSRC/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
400#expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
401#$TAR cf $WXDEST/wxWidgets-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
402#
403#echo Re-tarring jpeg in a subdirectory...
404#cd $WXDEST
405#mkdir wxWidgets-${WXVER}
406#cd wxWidgets-${WXVER}
407#$TAR xf ../wxWidgets-${WXVER}-jpeg.tar
408#cd ..
409#rm -f wxWidgets-${WXVER}-jpeg.tar
410#$TAR cf $WXDEST/wxWidgets-${WXVER}-jpeg.tar wxWidgets-${WXVER}/*
411#rm -f -r wxWidgets-${WXVER}
412#gzip $WXDEST/wxWidgets-${WXVER}-jpeg.tar
413
414### TIFF
415#cd $WXSRC
416#cat $WXSRC/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
417#expandlines /tmp/tiff_in.txt /tmp/tiff.txt
418#$TAR cf $WXDEST/wxWidgets-${WXVER}-tiff.tar -T /tmp/tiff.txt
419#
420#echo Re-tarring docs in a subdirectory...
421#cd $WXDEST
422#mkdir wxWidgets-${WXVER}
423#cd wxWidgets-${WXVER}
424#$TAR xf ../wxWidgets-${WXVER}-tiff.tar
425#cd ..
426#rm -f wxWidgets-${WXVER}-tiff.tar
427#$TAR cf $WXDEST/wxWidgets-${WXVER}-tiff.tar wxWidgets-${WXVER}/*
428#rm -f -r wxWidgets-${WXVER}
429#gzip $WXDEST/wxWidgets-${WXVER}-tiff.tar
430
431init=""
432if [ "$1" = "" ]
433then
434 echo Usage: tardist wx-dir output-dir version
435 exit
436fi
437
438if [ "$2" = "" ]
439then
440 echo Usage: tardist wx-dir output-dir version
441 exit
442fi
443
444if [ "$3" = "" ]
445then
446 echo Usage: tardist wx-dir output-dir version
447 exit
448fi
449
450PROGNAME=$0
451WXSRC=$1
452WXDEST=$2
453WXVER=$3
454
455SPINWXALL=0
456SPINWXX11=0
457SPINWXGTK=0
458SPINWXMOTIF=0
459SPINWXMAC=0
460SPINWXDOCS=0
461SPINEVERYTHING=0
462
463usage()
464{
465 echo Usage: $PROGNAME "src-dir dest-dir version-number [ options ]"
466 echo Options:
467 echo " --help Display this help message"
468 echo " --wxall Spin wxAll"
469 echo " --wxgtk Spin wxGTK"
470 echo " --wxmotif Spin wxMotif"
471 echo " --wxmac Spin wxMac"
472 echo " --wxx11 Spin wxX11"
473 echo " --wxdocs Spin docs"
474 echo " --all Spin EVERYTHING"
475
476 exit 1
477}
478
479# Process command line options.
480shift 3
481for i in "$@"; do
482 case "$i" in
483 --wxall) SPINWXALL=1 ;;
484 --wxx11) SPINWXX11=1 ;;
485 --wxgtk) SPINWXGTK=1 ;;
486 --wxmotif) SPINWXMOTIF=1 ;;
487 --wxmac) SPINWXMAC=1 ;;
488 --wxdocs) SPINWXDOCS=1 ;;
489 --all) SPINEVERYTHING=1 ;;
490 *)
491 usage
492 exit
493 ;;
494 esac
495done
496
497echo About to archive wxWidgets:
498echo From $WXSRC
499echo To $WXDEST
500echo Version $WXVER
501echo CTRL-C if this is not correct.
502read dummy
503
504doinit
505
506if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
507 dospinwxx11
508fi
509
510if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
511 dospinwxgtk
512fi
513
514if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
515 dospinwxmac
516fi
517
518if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
519 dospinwxmotif
520fi
521
522if [ "$SPINWXDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
523 dospinwxdocs
524fi
525
526if [ "$SPINWXALL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
527 dospinwxall
528fi
529