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
69 cat $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
70 expandlines
/tmp
/wxgtk_in.txt
/tmp
/wxgtk.txt
71 $TAR cf
$WXDEST/wxGTK
-${WXVER}.
tar -T /tmp
/wxgtk.txt
73 echo Re
-tarring wxGTK
in a subdirectory...
77 $TAR xf ..
/wxGTK
-${WXVER}.
tar
79 rm -f wxGTK
-${WXVER}.
tar
80 $TAR cf
$WXDEST/wxGTK
-${WXVER}.
tar wxGTK
-${WXVER}/*
81 rm -f -r wxGTK
-${WXVER}
82 gzip $WXDEST/wxGTK
-${WXVER}.
tar
87 echo Tarring wxMotif...
90 cat $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
91 expandlines
/tmp
/wxmotif_in.txt
/tmp
/wxmotif.txt
92 $TAR cf
$WXDEST/wxMotif
-${WXVER}.
tar -T /tmp
/wxmotif.txt
94 echo Re
-tarring wxMotif
in a subdirectory...
96 mkdir wxMotif
-${WXVER}
98 $TAR xf ..
/wxMotif
-${WXVER}.
tar
100 rm -f wxMotif
-${WXVER}.
tar
101 $TAR cf
$WXDEST/wxMotif
-${WXVER}.
tar wxMotif
-${WXVER}/*
102 rm -f -r wxMotif
-${WXVER}
103 gzip $WXDEST/wxMotif
-${WXVER}.
tar
108 echo Tarring wxX11...
110 ### wxX11: combined wxMotif and wxX11 distributions
112 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
/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
113 expandlines
/tmp
/wxx11_in.txt
/tmp
/wxx11.txt
114 $TAR cf
$WXDEST/wxX11
-${WXVER}.
tar -T /tmp
/wxx11.txt
116 echo Re
-tarring wxX11
in a subdirectory...
120 $TAR xf ..
/wxX11
-${WXVER}.
tar
122 rm -f wxX11
-${WXVER}.
tar
123 $TAR cf
$WXDEST/wxX11
-${WXVER}.
tar wxX11
-${WXVER}/*
124 rm -f -r wxX11
-${WXVER}
125 gzip $WXDEST/wxX11
-${WXVER}.
tar
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
131 # expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
132 # $TAR cf $WXDEST/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
133 # gzip $WXDEST/wxMSW-${WXVER}.tar
137 echo Tarring wxMac...
139 cp $WXSRC/include
/wx
/mac
/setup0.h
$WXSRC/include
/wx
/setup.h
141 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
/makefile.rsp
$WXSRC/distrib
/msw
/tiff.rsp
$WXSRC/distrib
/msw
/jpeg.rsp
> /tmp
/wxmac_in.txt
142 expandlines
/tmp
/wxmac_in.txt
/tmp
/wxmac.txt
143 $TAR cf
$WXDEST/wxMac
-${WXVER}.
tar -T /tmp
/wxmac.txt
145 rm -f $WXSRC/include
/wx
/setup.h
147 echo Re
-tarring wxMac
in a subdirectory...
151 $TAR xf ..
/wxMac
-${WXVER}.
tar
152 rm -f -r contrib
/src
/mmedia contrib
/samples
/mmedia
154 rm -f wxMac
-${WXVER}.
tar
155 $TAR cf
$WXDEST/wxMac
-${WXVER}.
tar wxMac
-${WXVER}/*
156 rm -f -r wxMac
-${WXVER}
157 gzip $WXDEST/wxMac
-${WXVER}.
tar
160 ### wxUniv: universal-specific files
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
166 #echo Re-tarring wxUniversal in a subdirectory...
168 #mkdir wxWindows-${WXVER}
169 #cd wxWindows-${WXVER}
170 #$TAR xf ../wxWindows-${WXVER}-Univ.tar
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
179 echo Tarring wxAll...
181 ### wxAll: all distributions in one giant archive
183 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
/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
184 expandlines
/tmp
/wxall_in.txt
/tmp
/wxall.txt
185 $TAR cf
$WXDEST/wxAll
-${WXVER}.
tar -T /tmp
/wxall.txt
187 echo Re
-tarring wxAll
in a subdirectory...
189 mkdir wxWindows
-${WXVER}
191 # If we have the full set of VC++ project files,
193 if [ -f $WXDEST/extra
/wxWindows
-${WXVER}-VC.
zip ]; then
194 unzip -o $WXDEST/extra
/wxWindows
-${WXVER}-VC.
zip
196 echo "Warning - did not find $WXDEST/deliver/extra/wxWindows-${WXVER}-VC.zip"
199 cd wxWindows
-${WXVER}
200 $TAR xf ..
/wxAll
-${WXVER}.
tar
202 # Translate all .dsp and .dsw files to DOS format
203 unix2dos
--unix2dos `cat $WXSRC/distrib/msw/vc.rsp`
205 # Copy OS/2 specific configure files
206 cp $WXSRC/distrib
/os
2/os2
-specific.
zip docs
/os2
208 # Copy the OS/2 files which probably haven't been copied yet
211 cp $WXSRC/include
/wx
/os
2/*.H include
/wx
/os2
212 cp $WXSRC/src
/os
2/*.CPP
$WXSRC/src
/os
2/*.I src
/os2
214 # Make all OS/2 files lower case
215 $WXSRC/distrib
/msw
/namedown include
/wx
/os
2/*.H
216 $WXSRC/distrib
/msw
/namedown src
/os
2/*.CPP src
/os
2/*.I
219 rm -f wxAll
-${WXVER}.
tar
220 $TAR cf
$WXDEST/wxAll
-${WXVER}.
tar wxWindows
-${WXVER}/*
221 rm -f -r wxWindows
-${WXVER}
222 gzip $WXDEST/wxAll
-${WXVER}.
tar
227 echo Tarring wxDocs...
231 #cat $WXSRC/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
232 #expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
233 #$TAR cf $WXDEST/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
235 #echo Re-tarring docs in a subdirectory...
237 #mkdir wxWindows-${WXVER}
238 #cd wxWindows-${WXVER}
239 #$TAR xf ../wxWindows-${WXVER}-doc.tar
241 #rm -f wxWindows-${WXVER}-doc.tar
242 #$TAR cf $WXDEST/wxWindows-${WXVER}-doc.tar wxWindows-${WXVER}/*
243 #rm -f -r wxWindows-${WXVER}
244 #gzip $WXDEST/wxWindows-${WXVER}-doc.tar
248 cat $WXSRC/distrib
/msw
/wx_html.rsp
> /tmp
/html_in.txt
249 expandlines
/tmp
/html_in.txt
/tmp
/html.txt
250 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTML.
tar -T /tmp
/html.txt
252 echo Re
-tarring HTML
in a subdirectory...
254 mkdir wxWindows
-${WXVER}
255 cd wxWindows
-${WXVER}
256 $TAR xf ..
/wxWindows
-${WXVER}-HTML.
tar
258 rm -f wxWindows
-${WXVER}-HTML.
tar
259 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTML.
tar wxWindows
-${WXVER}/*
260 rm -f -r wxWindows
-${WXVER}
261 gzip $WXDEST/wxWindows
-${WXVER}-HTML.
tar
265 cat $WXSRC/distrib
/msw
/wx_htb.rsp
> /tmp
/htb_in.txt
266 expandlines
/tmp
/htb_in.txt
/tmp
/htb.txt
267 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTB.
tar -T /tmp
/htb.txt
269 echo Re
-tarring HTB
in a subdirectory...
271 mkdir wxWindows
-${WXVER}
272 cd wxWindows
-${WXVER}
273 $TAR xf ..
/wxWindows
-${WXVER}-HTB.
tar
275 rm -f wxWindows
-${WXVER}-HTB.
tar
276 $TAR cf
$WXDEST/wxWindows
-${WXVER}-HTB.
tar wxWindows
-${WXVER}/*
277 rm -f -r wxWindows
-${WXVER}
278 gzip $WXDEST/wxWindows
-${WXVER}-HTB.
tar
282 cat $WXSRC/distrib
/msw
/wx_pdf.rsp
> /tmp
/pdf_in.txt
283 expandlines
/tmp
/pdf_in.txt
/tmp
/pdf.txt
284 $TAR cf
$WXDEST/wxWindows
-${WXVER}-PDF.
tar -T /tmp
/pdf.txt
286 echo Re
-tarring PDF
in a subdirectory...
288 mkdir wxWindows
-${WXVER}
289 cd wxWindows
-${WXVER}
290 $TAR xf ..
/wxWindows
-${WXVER}-PDF.
tar
292 rm -f wxWindows
-${WXVER}-PDF.
tar
293 $TAR cf
$WXDEST/wxWindows
-${WXVER}-PDF.
tar wxWindows
-${WXVER}/*
294 rm -f -r wxWindows
-${WXVER}
295 gzip $WXDEST/wxWindows
-${WXVER}-PDF.
tar
300 #cat $WXSRC/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
301 #expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
302 #$TAR cf $WXDEST/wxWindows-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
304 #echo Re-tarring Tex2RTF in a subdirectory...
306 #mkdir wxWindows-${WXVER}
307 #cd wxWindows-${WXVER}
308 #$TAR xf ../wxWindows-${WXVER}-tex2rtf.tar
310 #rm -f wxWindows-${WXVER}-tex2rtf.tar
311 #$TAR cf $WXDEST/wxWindows-${WXVER}-tex2rtf.tar wxWindows-${WXVER}/*
312 #rm -f -r wxWindows-${WXVER}
313 #gzip $WXDEST/wxWindows-${WXVER}-tex2rtf.tar
317 #cat $WXSRC/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
318 #expandlines /tmp/ogl_in.txt /tmp/ogl.txt
319 #$TAR cf $WXDEST/wxWindows-${WXVER}-ogl.tar -T /tmp/ogl.txt
321 #echo Re-tarring OGL in a subdirectory...
323 #mkdir wxWindows-${WXVER}
324 #cd wxWindows-${WXVER}
325 #$TAR xf ../wxWindows-${WXVER}-ogl.tar
327 #rm -f wxWindows-${WXVER}-ogl.tar
328 #$TAR cf $WXDEST/wxWindows-${WXVER}-ogl.tar wxWindows-${WXVER}/*
329 #rm -f -r wxWindows-${WXVER}
330 #gzip $WXDEST/wxWindows-${WXVER}-ogl.tar
334 #cat $WXSRC/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
335 #expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
336 #$TAR cf $WXDEST/wxWindows-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
338 #echo Re-tarring jpeg in a subdirectory...
340 #mkdir wxWindows-${WXVER}
341 #cd wxWindows-${WXVER}
342 #$TAR xf ../wxWindows-${WXVER}-jpeg.tar
344 #rm -f wxWindows-${WXVER}-jpeg.tar
345 #$TAR cf $WXDEST/wxWindows-${WXVER}-jpeg.tar wxWindows-${WXVER}/*
346 #rm -f -r wxWindows-${WXVER}
347 #gzip $WXDEST/wxWindows-${WXVER}-jpeg.tar
351 #cat $WXSRC/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
352 #expandlines /tmp/tiff_in.txt /tmp/tiff.txt
353 #$TAR cf $WXDEST/wxWindows-${WXVER}-tiff.tar -T /tmp/tiff.txt
355 #echo Re-tarring docs in a subdirectory...
357 #mkdir wxWindows-${WXVER}
358 #cd wxWindows-${WXVER}
359 #$TAR xf ../wxWindows-${WXVER}-tiff.tar
361 #rm -f wxWindows-${WXVER}-tiff.tar
362 #$TAR cf $WXDEST/wxWindows-${WXVER}-tiff.tar wxWindows-${WXVER}/*
363 #rm -f -r wxWindows-${WXVER}
364 #gzip $WXDEST/wxWindows-${WXVER}-tiff.tar
369 echo Usage
: tardist wx
-dir output
-dir version
375 echo Usage
: tardist wx
-dir output
-dir version
381 echo Usage
: tardist wx
-dir output
-dir version
400 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ 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"
414 # Process command line options.
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 ;;
432 echo About to archive wxWindows
:
436 echo CTRL
-C if this is not correct.
441 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
445 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
449 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
453 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
457 if [ "$SPINWXDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
461 if [ "$SPINWXALL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then