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