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
36 echo Usage
: tardist wx
-dir output
-dir version
42 echo Usage
: tardist wx
-dir output
-dir version
48 echo Usage
: tardist wx
-dir output
-dir version
54 echo About to archive wxWindows
:
57 echo CTRL
-C if this is not correct.
62 echo Removing backup files...
63 rm *~
*/*~
*/*/*~
*/*/*/*~
*/*/*/*/*~
65 rm -f $2/wx
*-${WXVER}*.
tar.gz
68 cp $1/include
/wx
/os
2/SETUP0.H
$1/include
/wx
/os
2/setup.h
69 cp $1/include
/wx
/msw
/setup0.h
$1/include
/wx
/msw
/setup.h
74 #cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp > /tmp/wxgen_in.txt
75 #expandlines /tmp/wxgen_in.txt /tmp/wxgen.txt
76 #$TAR cf $2/wxWindows-${WXVER}-gen.tar -T /tmp/wxgen.txt
77 #gzip $2/wxWindows-${WXVER}-gen.tar
78 #mv $2/wxWindows-${WXVER}-gen.tar.gz $2/wxWindows-${WXVER}-gen.tgz
82 cat $1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/utils.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/tex2rtf.rsp
$1/distrib
/msw
/dialoged.rsp
$1/distrib
/msw
/gtk.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxgtk_in.txt
83 expandlines
/tmp
/wxgtk_in.txt
/tmp
/wxgtk.txt
84 $TAR cf
$2/wxGTK
-${WXVER}.
tar -T /tmp
/wxgtk.txt
86 echo Re
-tarring wxGTK
in a subdirectory...
88 mkdir wxWindows
-${WXVER}
90 $TAR xf ..
/wxGTK
-${WXVER}.
tar
92 rm -f wxGTK
-${WXVER}.
tar
93 $TAR cf
$2/wxGTK
-${WXVER}.
tar wxWindows
-${WXVER}/*
94 rm -f -r wxWindows
-${WXVER}
95 gzip $2/wxGTK
-${WXVER}.
tar
99 cat $1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/motif.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxmotif_in.txt
100 expandlines
/tmp
/wxmotif_in.txt
/tmp
/wxmotif.txt
101 $TAR cf
$2/wxMotif
-${WXVER}.
tar -T /tmp
/wxmotif.txt
103 echo Re
-tarring wxMotif
in a subdirectory...
105 mkdir wxWindows
-${WXVER}
106 cd wxWindows
-${WXVER}
107 $TAR xf ..
/wxMotif
-${WXVER}.
tar
109 rm -f wxMotif
-${WXVER}.
tar
110 $TAR cf
$2/wxMotif
-${WXVER}.
tar wxWindows
-${WXVER}/*
111 rm -f -r wxWindows
-${WXVER}
112 gzip $2/wxMotif
-${WXVER}.
tar
114 ### wxX11: combined wxMotif and wxX11 distributions
116 cat $1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/motif.rsp
$1/distrib
/msw
/x11.rsp
$1/distrib
/msw
/univ.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/utils.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/dialoged.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxx11_in.txt
117 expandlines
/tmp
/wxx11_in.txt
/tmp
/wxx11.txt
118 $TAR cf
$2/wxX11
-${WXVER}.
tar -T /tmp
/wxx11.txt
120 echo Re
-tarring wxX11
in a subdirectory...
122 mkdir wxWindows
-${WXVER}
123 cd wxWindows
-${WXVER}
124 $TAR xf ..
/wxX11
-${WXVER}.
tar
126 rm -f wxX11
-${WXVER}.
tar
127 $TAR cf
$2/wxX11
-${WXVER}.
tar wxWindows
-${WXVER}/*
128 rm -f -r wxWindows
-${WXVER}
129 gzip $2/wxX11
-${WXVER}.
tar
133 # cat $1/distrib/msw/msw.rsp $1/distrib/msw/vc.rsp $1/distrib/msw/bc.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp > /tmp/wxmsw_in.txt
134 # expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
135 # $TAR cf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
136 # gzip $2/wxMSW-${WXVER}.tar
139 cp $1/include
/wx
/mac
/setup0.h
$1/include
/wx
/setup.h
141 cat $1/distrib
/msw
/mac.rsp
$1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/cw_mac.rsp
$1/distrib
/msw
/tex2rtf.rsp
$1/distrib
/msw
/utils.rsp
$1/distrib
/msw
/dialoged.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/stc.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxmac_in.txt
142 expandlines
/tmp
/wxmac_in.txt
/tmp
/wxmac.txt
143 $TAR cf
$2/wxMac
-${WXVER}.
tar -T /tmp
/wxmac.txt
145 rm -f $1/include
/wx
/setup.h
147 echo Re
-tarring wxMac
in a subdirectory...
149 mkdir wxWindows
-${WXVER}
150 cd wxWindows
-${WXVER}
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
$2/wxMac
-${WXVER}.
tar wxWindows
-${WXVER}/*
156 rm -f -r wxWindows
-${WXVER}
157 gzip $2/wxMac
-${WXVER}.
tar
159 ### wxUniv: universal-specific files
161 cat $1/distrib
/msw
/univ.rsp
> /tmp
/wxuniv_in.txt
162 expandlines
/tmp
/wxuniv_in.txt
/tmp
/wxuniv.txt
163 $TAR cf
$2/wxWindows
-${WXVER}-Univ.
tar -T /tmp
/wxuniv.txt
165 echo Re
-tarring wxUniversal
in a subdirectory...
167 mkdir wxWindows
-${WXVER}
168 cd wxWindows
-${WXVER}
169 $TAR xf ..
/wxWindows
-${WXVER}-Univ.
tar
171 rm -f wxWindows
-${WXVER}-Univ.
tar
172 $TAR cf
$2/wxWindows
-${WXVER}-Univ.
tar wxWindows
-${WXVER}/*
173 rm -f -r wxWindows
-${WXVER}
174 gzip $2/wxWindows
-${WXVER}-Univ.
tar
176 ### wxAll: all distributions in one giant archive
178 cat $1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/msw.rsp
$1/distrib
/msw
/vc.rsp
$1/distrib
/msw
/cw.rsp
$1/distrib
/msw
/cw_mac.rsp
$1/distrib
/msw
/gtk.rsp
$1/distrib
/msw
/x11.rsp
$1/distrib
/msw
/motif.rsp
$1/distrib
/msw
/mac.rsp
$1/distrib
/msw
/os2.rsp
$1/distrib
/msw
/x11.rsp
$1/distrib
/msw
/univ.rsp
$1/distrib
/msw
/mgl.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/utilmake.rsp
$1/distrib
/msw
/utils.rsp
$1/distrib
/msw
/mmedia.rsp
$1/distrib
/msw
/tex2rtf.rsp
$1/distrib
/msw
/stc.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/dialoged.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
$1/distrib
/msw
/docsrc.rsp
| uniq > /tmp
/wxall_in.txt
179 expandlines
/tmp
/wxall_in.txt
/tmp
/wxall.txt
180 $TAR cf
$2/wxAll
-${WXVER}.
tar -T /tmp
/wxall.txt
182 echo Re
-tarring wxAll
in a subdirectory...
184 mkdir wxWindows
-${WXVER}
186 # If we have the full set of VC++ project files,
188 if [ -f $2/extra
/wxWindows
-${WXVER}-VC.
zip ]; then
189 unzip -o $2/extra
/wxWindows
-${WXVER}-VC.
zip
191 echo "Warning - did not find $2/deliver/extra/wxWindows-${WXVER}-VC.zip"
194 cd wxWindows
-${WXVER}
195 $TAR xf ..
/wxAll
-${WXVER}.
tar
197 # Translate all .dsp and .dsw files to DOS format
198 unix2dos
--unix2dos `cat $1/distrib/msw/vc.rsp`
200 # Copy OS/2 specific configure files
201 cp $1/distrib
/os
2/os2
-specific.
zip docs
/os2
203 # Copy the OS/2 files which probably haven't been copied yet
206 cp $1/include
/wx
/os
2/*.H include
/wx
/os2
207 cp $1/src
/os
2/*.CPP
$1/src
/os
2/*.I src
/os2
209 # Make all OS/2 files lower case
210 $1/distrib
/msw
/namedown include
/wx
/os
2/*.H
211 $1/distrib
/msw
/namedown src
/os
2/*.CPP src
/os
2/*.I
214 rm -f wxAll
-${WXVER}.
tar
215 $TAR cf
$2/wxAll
-${WXVER}.
tar wxWindows
-${WXVER}/*
216 rm -f -r wxWindows
-${WXVER}
217 gzip $2/wxAll
-${WXVER}.
tar
222 #cat $1/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
223 #expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
224 #$TAR cf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
226 #echo Re-tarring docs in a subdirectory...
228 #mkdir wxWindows-${WXVER}
229 #cd wxWindows-${WXVER}
230 #$TAR xf ../wxWindows-${WXVER}-doc.tar
232 #rm -f wxWindows-${WXVER}-doc.tar
233 #$TAR cf $2/wxWindows-${WXVER}-doc.tar wxWindows-${WXVER}/*
234 #rm -f -r wxWindows-${WXVER}
235 #gzip $2/wxWindows-${WXVER}-doc.tar
239 cat $1/distrib
/msw
/wx_html.rsp
> /tmp
/html_in.txt
240 expandlines
/tmp
/html_in.txt
/tmp
/html.txt
241 $TAR cf
$2/wxWindows
-${WXVER}-HTML.
tar -T /tmp
/html.txt
243 echo Re
-tarring HTML
in a subdirectory...
245 mkdir wxWindows
-${WXVER}
246 cd wxWindows
-${WXVER}
247 $TAR xf ..
/wxWindows
-${WXVER}-HTML.
tar
249 rm -f wxWindows
-${WXVER}-HTML.
tar
250 $TAR cf
$2/wxWindows
-${WXVER}-HTML.
tar wxWindows
-${WXVER}/*
251 rm -f -r wxWindows
-${WXVER}
252 gzip $2/wxWindows
-${WXVER}-HTML.
tar
256 cat $1/distrib
/msw
/wx_htb.rsp
> /tmp
/htb_in.txt
257 expandlines
/tmp
/htb_in.txt
/tmp
/htb.txt
258 $TAR cf
$2/wxWindows
-${WXVER}-HTB.
tar -T /tmp
/htb.txt
260 echo Re
-tarring HTB
in a subdirectory...
262 mkdir wxWindows
-${WXVER}
263 cd wxWindows
-${WXVER}
264 $TAR xf ..
/wxWindows
-${WXVER}-HTB.
tar
266 rm -f wxWindows
-${WXVER}-HTB.
tar
267 $TAR cf
$2/wxWindows
-${WXVER}-HTB.
tar wxWindows
-${WXVER}/*
268 rm -f -r wxWindows
-${WXVER}
269 gzip $2/wxWindows
-${WXVER}-HTB.
tar
273 cat $1/distrib
/msw
/wx_pdf.rsp
> /tmp
/pdf_in.txt
274 expandlines
/tmp
/pdf_in.txt
/tmp
/pdf.txt
275 $TAR cf
$2/wxWindows
-${WXVER}-PDF.
tar -T /tmp
/pdf.txt
277 echo Re
-tarring PDF
in a subdirectory...
279 mkdir wxWindows
-${WXVER}
280 cd wxWindows
-${WXVER}
281 $TAR xf ..
/wxWindows
-${WXVER}-PDF.
tar
283 rm -f wxWindows
-${WXVER}-PDF.
tar
284 $TAR cf
$2/wxWindows
-${WXVER}-PDF.
tar wxWindows
-${WXVER}/*
285 rm -f -r wxWindows
-${WXVER}
286 gzip $2/wxWindows
-${WXVER}-PDF.
tar
290 #cat $1/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
291 #expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
292 #$TAR cf $2/wxWindows-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
294 #echo Re-tarring Tex2RTF in a subdirectory...
296 #mkdir wxWindows-${WXVER}
297 #cd wxWindows-${WXVER}
298 #$TAR xf ../wxWindows-${WXVER}-tex2rtf.tar
300 #rm -f wxWindows-${WXVER}-tex2rtf.tar
301 #$TAR cf $2/wxWindows-${WXVER}-tex2rtf.tar wxWindows-${WXVER}/*
302 #rm -f -r wxWindows-${WXVER}
303 #gzip $2/wxWindows-${WXVER}-tex2rtf.tar
307 #cat $1/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
308 #expandlines /tmp/ogl_in.txt /tmp/ogl.txt
309 #$TAR cf $2/wxWindows-${WXVER}-ogl.tar -T /tmp/ogl.txt
311 #echo Re-tarring OGL in a subdirectory...
313 #mkdir wxWindows-${WXVER}
314 #cd wxWindows-${WXVER}
315 #$TAR xf ../wxWindows-${WXVER}-ogl.tar
317 #rm -f wxWindows-${WXVER}-ogl.tar
318 #$TAR cf $2/wxWindows-${WXVER}-ogl.tar wxWindows-${WXVER}/*
319 #rm -f -r wxWindows-${WXVER}
320 #gzip $2/wxWindows-${WXVER}-ogl.tar
324 #cat $1/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
325 #expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
326 #$TAR cf $2/wxWindows-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
328 #echo Re-tarring jpeg in a subdirectory...
330 #mkdir wxWindows-${WXVER}
331 #cd wxWindows-${WXVER}
332 #$TAR xf ../wxWindows-${WXVER}-jpeg.tar
334 #rm -f wxWindows-${WXVER}-jpeg.tar
335 #$TAR cf $2/wxWindows-${WXVER}-jpeg.tar wxWindows-${WXVER}/*
336 #rm -f -r wxWindows-${WXVER}
337 #gzip $2/wxWindows-${WXVER}-jpeg.tar
341 #cat $1/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
342 #expandlines /tmp/tiff_in.txt /tmp/tiff.txt
343 #$TAR cf $2/wxWindows-${WXVER}-tiff.tar -T /tmp/tiff.txt
345 #echo Re-tarring docs in a subdirectory...
347 #mkdir wxWindows-${WXVER}
348 #cd wxWindows-${WXVER}
349 #$TAR xf ../wxWindows-${WXVER}-tiff.tar
351 #rm -f wxWindows-${WXVER}-tiff.tar
352 #$TAR cf $2/wxWindows-${WXVER}-tiff.tar wxWindows-${WXVER}/*
353 #rm -f -r wxWindows-${WXVER}
354 #gzip $2/wxWindows-${WXVER}-tiff.tar
356 # Copy readme and other files
358 cp $1/docs
/readme.txt
$2/readme
-${WXVER}.txt
359 cp $1/docs
/changes.txt
$2/changes
-${WXVER}.txt
360 cp $1/docs
/mgl
/readme.txt
$2/readme
-mgl-${WXVER}.txt
361 cp $1/docs
/mgl
/install.txt
$2/install-mgl-${WXVER}.txt
362 cp $1/docs
/x
11/readme.txt
$2/readme
-x11-${WXVER}.txt
363 cp $1/docs
/x
11/readme
-nanox.txt
$2/readme
-nanox-${WXVER}.txt
364 cp $1/docs
/x
11/install.txt
$2/install-x11-${WXVER}.txt
365 cp $1/docs
/motif
/readme.txt
$2/readme
-motif-${WXVER}.txt
366 cp $1/docs
/motif
/install.txt
$2/install-motif-${WXVER}.txt
367 cp $1/docs
/msw
/readme.txt
$2/readme
-msw-${WXVER}.txt
368 cp $1/docs
/msw
/install.txt
$2/install-msw-${WXVER}.txt
369 cp $1/docs
/gtk
/readme.txt
$2/readme
-gtk-${WXVER}.txt
370 cp $1/docs
/gtk
/install.txt
$2/install-gtk-${WXVER}.txt
371 cp $1/docs
/mac
/readme.txt
$2/readme
-mac-${WXVER}.txt
372 cp $1/docs
/mac
/install.txt
$2/install-mac-${WXVER}.txt
373 cp $1/docs
/os
2/install.txt
$2/install-os2-${WXVER}.txt