2 # tardist: make up a tar.gz distribution of wxWindows 2
3 # Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
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
12 if [ "$ARCH" = "ppc" ]; then
23 for line
in `cat $toexpand` ; do
24 if [ "$line" != "" ]; then
25 ls $line >> $outputfile
27 uniq < $outputfile > /tmp
/uniqtemp.txt
28 mv /tmp
/uniqtemp.txt
$outputfile
35 echo Removing backup files...
36 rm *~
*/*~
*/*/*~
*/*/*/*~
*/*/*/*/*~
38 rm -f $WXDEST/wx
*-${WXVER}*.
tar.gz
40 cp $WXSRC/include
/wx
/os
2/SETUP0.H
$WXSRC/include
/wx
/os
2/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
44 # Copy readme and other files
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
/x
11/readme.txt
$WXDEST/readme
-x11-${WXVER}.txt
51 cp $WXSRC/docs
/x
11/readme
-nanox.txt
$WXDEST/readme
-nanox-${WXVER}.txt
52 cp $WXSRC/docs
/x
11/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
/os
2/install.txt
$WXDEST/install-os2-${WXVER}.txt
73 cat $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
/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
74 expandlines
/tmp
/wxgtk_in.txt
/tmp
/wxgtk.txt
75 $TAR cf
$WXDEST/wxGTK
-${WXVER}.
tar -T /tmp
/wxgtk.txt
77 echo Re
-tarring wxGTK
in a subdirectory...
81 $TAR xf ..
/wxGTK
-${WXVER}.
tar
83 rm -f wxGTK
-${WXVER}.
tar
84 $TAR cf
$WXDEST/wxGTK
-${WXVER}.
tar wxGTK
-${WXVER}/*
85 rm -f -r wxGTK
-${WXVER}
86 gzip $WXDEST/wxGTK
-${WXVER}.
tar
91 echo Tarring wxMotif...
94 cat $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
95 expandlines
/tmp
/wxmotif_in.txt
/tmp
/wxmotif.txt
96 $TAR cf
$WXDEST/wxMotif
-${WXVER}.
tar -T /tmp
/wxmotif.txt
98 echo Re
-tarring wxMotif
in a subdirectory...
100 mkdir wxMotif
-${WXVER}
102 $TAR xf ..
/wxMotif
-${WXVER}.
tar
104 rm -f wxMotif
-${WXVER}.
tar
105 $TAR cf
$WXDEST/wxMotif
-${WXVER}.
tar wxMotif
-${WXVER}/*
106 rm -f -r wxMotif
-${WXVER}
107 gzip $WXDEST/wxMotif
-${WXVER}.
tar
112 echo Tarring wxX11...
114 ### wxX11: combined wxMotif and wxX11 distributions
116 cat $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
/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
117 expandlines
/tmp
/wxx11_in.txt
/tmp
/wxx11.txt
118 $TAR cf
$WXDEST/wxX11
-${WXVER}.
tar -T /tmp
/wxx11.txt
120 echo Re
-tarring wxX11
in a subdirectory...
124 $TAR xf ..
/wxX11
-${WXVER}.
tar
126 rm -f wxX11
-${WXVER}.
tar
127 $TAR cf
$WXDEST/wxX11
-${WXVER}.
tar wxX11
-${WXVER}/*
128 rm -f -r wxX11
-${WXVER}
129 gzip $WXDEST/wxX11
-${WXVER}.
tar
134 # 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
135 # expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
136 # $TAR cf $WXDEST/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
137 # gzip $WXDEST/wxMSW-${WXVER}.tar
141 echo Tarring wxMac...
143 cp $WXSRC/include
/wx
/mac
/setup0.h
$WXSRC/include
/wx
/setup.h
145 cat $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
/deprecated.rsp
$WXSRC/distrib
/msw
/makefile.rsp
$WXSRC/distrib
/msw
/tiff.rsp
$WXSRC/distrib
/msw
/jpeg.rsp
> /tmp
/wxmac_in.txt
146 expandlines
/tmp
/wxmac_in.txt
/tmp
/wxmac.txt
147 $TAR cf
$WXDEST/wxMac
-${WXVER}.
tar -T /tmp
/wxmac.txt
149 rm -f $WXSRC/include
/wx
/setup.h
151 echo Re
-tarring wxMac
in a subdirectory...
156 # If we have the full set of Mac CW project files,
158 if [ -f $WXDEST/extra
/wxWindows
-${WXVER}-CW-Mac.
zip ]; then
159 unzip -o $WXDEST/extra
/wxWindows
-${WXVER}-CW-Mac.
zip
161 echo "Warning - did not find $WXDEST/deliver/extra/wxWindows-${WXVER}-CW-Mac.zip"
164 $TAR xf ..
/wxMac
-${WXVER}.
tar
165 rm -f -r contrib
/src
/mmedia contrib
/samples
/mmedia
167 rm -f wxMac
-${WXVER}.
tar
168 $TAR cf
$WXDEST/wxMac
-${WXVER}.
tar wxMac
-${WXVER}/*
169 rm -f -r wxMac
-${WXVER}
170 gzip $WXDEST/wxMac
-${WXVER}.
tar
173 ### wxUniv: universal-specific files
175 #cat $WXSRC/distrib/msw/univ.rsp > /tmp/wxuniv_in.txt
176 #expandlines /tmp/wxuniv_in.txt /tmp/wxuniv.txt
177 #$TAR cf $WXDEST/wxWindows-${WXVER}-Univ.tar -T /tmp/wxuniv.txt
179 #echo Re-tarring wxUniversal in a subdirectory...
181 #mkdir wxWindows-${WXVER}
182 #cd wxWindows-${WXVER}
183 #$TAR xf ../wxWindows-${WXVER}-Univ.tar
185 #rm -f wxWindows-${WXVER}-Univ.tar
186 #$TAR cf $WXDEST/wxWindows-${WXVER}-Univ.tar wxWindows-${WXVER}/*
187 #rm -f -r wxWindows-${WXVER}
188 #gzip $WXDEST/wxWindows-${WXVER}-Univ.tar
192 echo Tarring wxAll...
194 ### wxAll: all distributions in one giant archive
196 cat $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
/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
197 expandlines
/tmp
/wxall_in.txt
/tmp
/wxall.txt
198 $TAR cf
$WXDEST/wxAll
-${WXVER}.
tar -T /tmp
/wxall.txt
200 echo Re
-tarring wxAll
in a subdirectory...
202 mkdir wxWindows
-${WXVER}
204 cd wxWindows
-${WXVER}
206 # If we have the full set of VC++ project files,
208 if [ -f $WXDEST/extra
/wxWindows
-${WXVER}-VC.
zip ]; then
209 unzip -o $WXDEST/extra
/wxWindows
-${WXVER}-VC.
zip
211 echo "Warning - did not find $WXDEST/deliver/extra/wxWindows-${WXVER}-VC.zip"
214 # If we have the full set of Mac CW project files,
216 if [ -f $WXDEST/extra
/wxWindows
-${WXVER}-CW-Mac.
zip ]; then
217 unzip -o $WXDEST/extra
/wxWindows
-${WXVER}-CW-Mac.
zip
219 echo "Warning - did not find $WXDEST/deliver/extra/wxWindows-${WXVER}-CW-Mac.zip"
222 $TAR xf ..
/wxAll
-${WXVER}.
tar
224 # Translate all .dsp and .dsw files to DOS format
225 unix2dos
--unix2dos `cat $WXSRC/distrib/msw/vc.rsp`
227 # Copy OS/2 specific configure files
229 # cp $WXSRC/distrib/os2/os2-specific.zip docs/os2
231 # Copy the OS/2 files which probably haven't been copied yet
234 cp $WXSRC/include
/wx
/os
2/*.H include
/wx
/os2
235 cp $WXSRC/src
/os
2/*.CPP
$WXSRC/src
/os
2/*.I src
/os2
237 # Make all OS/2 files lower case
238 $WXSRC/distrib
/msw
/namedown include
/wx
/os
2/*.H
239 $WXSRC/distrib
/msw
/namedown src
/os
2/*.CPP src
/os
2/*.I
242 rm -f wxAll
-${WXVER}.
tar
243 $TAR cf
$WXDEST/wxAll
-${WXVER}.
tar wxWindows
-${WXVER}/*
244 rm -f -r wxWindows
-${WXVER}
245 gzip $WXDEST/wxAll
-${WXVER}.
tar
250 echo Tarring wxDocs...
254 #cat $WXSRC/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
255 #expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
256 #$TAR cf $WXDEST/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
258 #echo Re-tarring docs in a subdirectory...
260 #mkdir wxWindows-${WXVER}
261 #cd wxWindows-${WXVER}
262 #$TAR xf ../wxWindows-${WXVER}-doc.tar
264 #rm -f wxWindows-${WXVER}-doc.tar
265 #$TAR cf $WXDEST/wxWindows-${WXVER}-doc.tar wxWindows-${WXVER}/*
266 #rm -f -r wxWindows-${WXVER}
267 #gzip $WXDEST/wxWindows-${WXVER}-doc.tar
271 cat $WXSRC/distrib
/msw
/wx_html.rsp
> /tmp
/html_in.txt
272 expandlines
/tmp
/html_in.txt
/tmp
/html.txt
273 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTML.
tar -T /tmp
/html.txt
275 echo Re
-tarring HTML
in a subdirectory...
277 mkdir wxWindows
-${WXVER}
278 cd wxWindows
-${WXVER}
279 $TAR xf ..
/wxWindows
-${WXVER}-HTML.
tar
281 rm -f wxWindows
-${WXVER}-HTML.
tar
282 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTML.
tar wxWindows
-${WXVER}/*
283 rm -f -r wxWindows
-${WXVER}
284 gzip $WXDEST/wxWindows
-${WXVER}-HTML.
tar
288 cat $WXSRC/distrib
/msw
/wx_htb.rsp
> /tmp
/htb_in.txt
289 expandlines
/tmp
/htb_in.txt
/tmp
/htb.txt
290 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTB.
tar -T /tmp
/htb.txt
292 echo Re
-tarring HTB
in a subdirectory...
294 mkdir wxWindows
-${WXVER}
295 cd wxWindows
-${WXVER}
296 $TAR xf ..
/wxWindows
-${WXVER}-HTB.
tar
298 rm -f wxWindows
-${WXVER}-HTB.
tar
299 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTB.
tar wxWindows
-${WXVER}/*
300 rm -f -r wxWindows
-${WXVER}
301 gzip $WXDEST/wxWindows
-${WXVER}-HTB.
tar
305 cat $WXSRC/distrib
/msw
/wx_pdf.rsp
> /tmp
/pdf_in.txt
306 expandlines
/tmp
/pdf_in.txt
/tmp
/pdf.txt
307 $TAR cf
$WXDEST/wxWindows
-${WXVER}-PDF.
tar -T /tmp
/pdf.txt
309 echo Re
-tarring PDF
in a subdirectory...
311 mkdir wxWindows
-${WXVER}
312 cd wxWindows
-${WXVER}
313 $TAR xf ..
/wxWindows
-${WXVER}-PDF.
tar
315 rm -f wxWindows
-${WXVER}-PDF.
tar
316 $TAR cf
$WXDEST/wxWindows
-${WXVER}-PDF.
tar wxWindows
-${WXVER}/*
317 rm -f -r wxWindows
-${WXVER}
318 gzip $WXDEST/wxWindows
-${WXVER}-PDF.
tar
323 #cat $WXSRC/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
324 #expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
325 #$TAR cf $WXDEST/wxWindows-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
327 #echo Re-tarring Tex2RTF in a subdirectory...
329 #mkdir wxWindows-${WXVER}
330 #cd wxWindows-${WXVER}
331 #$TAR xf ../wxWindows-${WXVER}-tex2rtf.tar
333 #rm -f wxWindows-${WXVER}-tex2rtf.tar
334 #$TAR cf $WXDEST/wxWindows-${WXVER}-tex2rtf.tar wxWindows-${WXVER}/*
335 #rm -f -r wxWindows-${WXVER}
336 #gzip $WXDEST/wxWindows-${WXVER}-tex2rtf.tar
340 #cat $WXSRC/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
341 #expandlines /tmp/ogl_in.txt /tmp/ogl.txt
342 #$TAR cf $WXDEST/wxWindows-${WXVER}-ogl.tar -T /tmp/ogl.txt
344 #echo Re-tarring OGL in a subdirectory...
346 #mkdir wxWindows-${WXVER}
347 #cd wxWindows-${WXVER}
348 #$TAR xf ../wxWindows-${WXVER}-ogl.tar
350 #rm -f wxWindows-${WXVER}-ogl.tar
351 #$TAR cf $WXDEST/wxWindows-${WXVER}-ogl.tar wxWindows-${WXVER}/*
352 #rm -f -r wxWindows-${WXVER}
353 #gzip $WXDEST/wxWindows-${WXVER}-ogl.tar
357 #cat $WXSRC/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
358 #expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
359 #$TAR cf $WXDEST/wxWindows-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
361 #echo Re-tarring jpeg in a subdirectory...
363 #mkdir wxWindows-${WXVER}
364 #cd wxWindows-${WXVER}
365 #$TAR xf ../wxWindows-${WXVER}-jpeg.tar
367 #rm -f wxWindows-${WXVER}-jpeg.tar
368 #$TAR cf $WXDEST/wxWindows-${WXVER}-jpeg.tar wxWindows-${WXVER}/*
369 #rm -f -r wxWindows-${WXVER}
370 #gzip $WXDEST/wxWindows-${WXVER}-jpeg.tar
374 #cat $WXSRC/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
375 #expandlines /tmp/tiff_in.txt /tmp/tiff.txt
376 #$TAR cf $WXDEST/wxWindows-${WXVER}-tiff.tar -T /tmp/tiff.txt
378 #echo Re-tarring docs in a subdirectory...
380 #mkdir wxWindows-${WXVER}
381 #cd wxWindows-${WXVER}
382 #$TAR xf ../wxWindows-${WXVER}-tiff.tar
384 #rm -f wxWindows-${WXVER}-tiff.tar
385 #$TAR cf $WXDEST/wxWindows-${WXVER}-tiff.tar wxWindows-${WXVER}/*
386 #rm -f -r wxWindows-${WXVER}
387 #gzip $WXDEST/wxWindows-${WXVER}-tiff.tar
392 echo Usage
: tardist wx
-dir output
-dir version
398 echo Usage
: tardist wx
-dir output
-dir version
404 echo Usage
: tardist wx
-dir output
-dir version
423 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
425 echo " --help Display this help message"
426 echo " --wxall Spin wxAll"
427 echo " --wxgtk Spin wxGTK"
428 echo " --wxmotif Spin wxMotif"
429 echo " --wxmac Spin wxMac"
430 echo " --wxx11 Spin wxX11"
431 echo " --wxdocs Spin docs"
432 echo " --all Spin EVERYTHING"
437 # Process command line options.
441 --wxall) SPINWXALL
=1 ;;
442 --wxx11) SPINWXX11
=1 ;;
443 --wxgtk) SPINWXGTK
=1 ;;
444 --wxmotif) SPINWXMOTIF
=1 ;;
445 --wxmac) SPINWXMAC
=1 ;;
446 --wxdocs) SPINWXDOCS
=1 ;;
447 --all) SPINEVERYTHING
=1 ;;
455 echo About to archive wxWindows
:
459 echo CTRL
-C if this is not correct.
464 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
468 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
472 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
476 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
480 if [ "$SPINWXDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
484 if [ "$SPINWXALL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then