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