]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tardist
Open files in binary mode to convert DOS to Unix
[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
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
c4839ccf 48
2b5f62a0
VZ
49 cp $WXSRC/docs/mgl/readme.txt $WXDEST/readme-mgl-${WXVER}.txt
50 cp $WXSRC/docs/mgl/install.txt $WXDEST/install-mgl-${WXVER}.txt
c4839ccf 51
2b5f62a0 52 cp $WXSRC/docs/x11/readme.txt $WXDEST/readme-x11-${WXVER}.txt
c4839ccf 53# cp $WXSRC/docs/x11/readme-nanox.txt $WXDEST/readme-nanox-${WXVER}.txt
2b5f62a0 54 cp $WXSRC/docs/x11/install.txt $WXDEST/install-x11-${WXVER}.txt
c4839ccf 55
2b5f62a0
VZ
56 cp $WXSRC/docs/motif/readme.txt $WXDEST/readme-motif-${WXVER}.txt
57 cp $WXSRC/docs/motif/install.txt $WXDEST/install-motif-${WXVER}.txt
c4839ccf 58
2b5f62a0
VZ
59 cp $WXSRC/docs/msw/readme.txt $WXDEST/readme-msw-${WXVER}.txt
60 cp $WXSRC/docs/msw/install.txt $WXDEST/install-msw-${WXVER}.txt
c4839ccf 61
2b5f62a0
VZ
62 cp $WXSRC/docs/gtk/readme.txt $WXDEST/readme-gtk-${WXVER}.txt
63 cp $WXSRC/docs/gtk/install.txt $WXDEST/install-gtk-${WXVER}.txt
c4839ccf 64
2b5f62a0
VZ
65 cp $WXSRC/docs/mac/readme.txt $WXDEST/readme-mac-${WXVER}.txt
66 cp $WXSRC/docs/mac/install.txt $WXDEST/install-mac-${WXVER}.txt
c4839ccf
JS
67
68 cp $WXSRC/docs/cocoa/readme.txt $WXDEST/readme-cocoa-${WXVER}.txt
69 cp $WXSRC/docs/cocoa/install.txt $WXDEST/install-cocoa-${WXVER}.txt
70
2b5f62a0 71 cp $WXSRC/docs/os2/install.txt $WXDEST/install-os2-${WXVER}.txt
2e38557f
JS
72
73 # Make .mo files
74 cd $WXSRC/locale
75 make allmo
2b5f62a0 76}
7a5e6267 77
2b5f62a0
VZ
78dospinwxgtk()
79{
80echo Tarring wxGTK...
b69f1bd1 81
2b5f62a0 82cd $WXSRC
1cb14841 83cat $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 84expandlines /tmp/wxgtk_in.txt /tmp/wxgtk.txt
2b5f62a0 85$TAR cf $WXDEST/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt
332b8edb
JS
86
87echo Re-tarring wxGTK in a subdirectory...
2b5f62a0
VZ
88cd $WXDEST
89mkdir wxGTK-${WXVER}
90cd wxGTK-${WXVER}
332b8edb 91$TAR xf ../wxGTK-${WXVER}.tar
5318ee36
JS
92echo Copying readme files...
93cp $WXSRC/docs/gtk/readme.txt README-GTK.txt
94cp $WXSRC/docs/gtk/install.txt INSTALL-GTK.txt
95cp $WXSRC/docs/readme.txt README.txt
96cp $WXSRC/docs/changes.txt CHANGES.txt
97cp $WXSRC/docs/licence.txt LICENCE.txt
98cp $WXSRC/docs/lgpl.txt COPYING.LIB
332b8edb
JS
99cd ..
100rm -f wxGTK-${WXVER}.tar
2b5f62a0
VZ
101$TAR cf $WXDEST/wxGTK-${WXVER}.tar wxGTK-${WXVER}/*
102rm -f -r wxGTK-${WXVER}
103gzip $WXDEST/wxGTK-${WXVER}.tar
104}
105
106dospinwxmotif()
107{
108echo Tarring wxMotif...
33b64e6f 109
2b5f62a0 110cd $WXSRC
7c9955d1 111cat $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 112expandlines /tmp/wxmotif_in.txt /tmp/wxmotif.txt
2b5f62a0 113$TAR cf $WXDEST/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt
332b8edb
JS
114
115echo Re-tarring wxMotif in a subdirectory...
2b5f62a0
VZ
116cd $WXDEST
117mkdir wxMotif-${WXVER}
118cd wxMotif-${WXVER}
332b8edb 119$TAR xf ../wxMotif-${WXVER}.tar
5318ee36
JS
120echo Copying readme files...
121cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt
122cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt
123cp $WXSRC/docs/readme.txt README.txt
124cp $WXSRC/docs/changes.txt CHANGES.txt
125cp $WXSRC/docs/licence.txt LICENCE.txt
126cp $WXSRC/docs/lgpl.txt COPYING.LIB
332b8edb
JS
127cd ..
128rm -f wxMotif-${WXVER}.tar
2b5f62a0
VZ
129$TAR cf $WXDEST/wxMotif-${WXVER}.tar wxMotif-${WXVER}/*
130rm -f -r wxMotif-${WXVER}
131gzip $WXDEST/wxMotif-${WXVER}.tar
132}
133
134dospinwxx11()
135{
136echo Tarring wxX11...
33b64e6f 137
4869c7db 138### wxX11: combined wxMotif and wxX11 distributions
2b5f62a0 139cd $WXSRC
1cb14841 140cat $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 141expandlines /tmp/wxx11_in.txt /tmp/wxx11.txt
2b5f62a0 142$TAR cf $WXDEST/wxX11-${WXVER}.tar -T /tmp/wxx11.txt
332b8edb
JS
143
144echo Re-tarring wxX11 in a subdirectory...
2b5f62a0
VZ
145cd $WXDEST
146mkdir wxX11-${WXVER}
147cd wxX11-${WXVER}
332b8edb 148$TAR xf ../wxX11-${WXVER}.tar
5318ee36
JS
149echo Copying readme files...
150cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt
151cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt
152cp $WXSRC/docs/x11/readme.txt README-X11.txt
153cp $WXSRC/docs/x11/install.txt INSTALL-X11.txt
154cp $WXSRC/docs/readme.txt README.txt
155cp $WXSRC/docs/changes.txt CHANGES.txt
156cp $WXSRC/docs/licence.txt LICENCE.txt
157cp $WXSRC/docs/lgpl.txt COPYING.LIB
332b8edb
JS
158cd ..
159rm -f wxX11-${WXVER}.tar
2b5f62a0
VZ
160$TAR cf $WXDEST/wxX11-${WXVER}.tar wxX11-${WXVER}/*
161rm -f -r wxX11-${WXVER}
162gzip $WXDEST/wxX11-${WXVER}.tar
163}
c2ff68d3 164
13bf613e 165### wxMSW
2b5f62a0 166# cd $WXSRC
7c9955d1 167# 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 168# expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
2b5f62a0
VZ
169# $TAR cf $WXDEST/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
170# gzip $WXDEST/wxMSW-${WXVER}.tar
13bf613e 171
2b5f62a0
VZ
172dospinwxmac()
173{
174echo Tarring wxMac...
38be1092 175### wxMac
2b5f62a0
VZ
176cp $WXSRC/include/wx/mac/setup0.h $WXSRC/include/wx/setup.h
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
0157e579 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/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
2b5f62a0 238$TAR cf $WXDEST/wxAll-${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
52ee2268
JS
254# If we have the full set of Mac CW project files,
255# get them
77ffb593
JS
256if [ -f $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip ]; then
257 unzip -o $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip
52ee2268 258else
77ffb593 259 echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-CW-Mac.zip"
52ee2268
JS
260fi
261
2c00930d 262$TAR xf ../wxAll-${WXVER}.tar
c721300b
JS
263
264# Translate all .dsp and .dsw files to DOS format
2b5f62a0 265unix2dos --unix2dos `cat $WXSRC/distrib/msw/vc.rsp`
c721300b 266
5318ee36
JS
267echo Copying readme files...
268cp $WXSRC/docs/readme.txt README.txt
269cp $WXSRC/docs/changes.txt CHANGES.txt
270cp $WXSRC/docs/licence.txt LICENCE.txt
271cp $WXSRC/docs/lgpl.txt COPYING.LIB
272cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt
273cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt
274cp $WXSRC/docs/x11/readme.txt README-X11.txt
275cp $WXSRC/docs/x11/install.txt INSTALL-X11.txt
276cp $WXSRC/docs/mac/readme.txt README-MAC.txt
277cp $WXSRC/docs/mac/install.txt INSTALL-MAC.txt
278cp $WXSRC/docs/mgl/readme.txt README-MGL.txt
279cp $WXSRC/docs/mgl/install.txt INSTALL-MGL.txt
280#cp $WXSRC/docs/os2/readme.txt README-OS2.txt
281cp $WXSRC/docs/os2/install.txt INSTALL-OS2.txt
282
6b978929
JS
283cd ..
284rm -f wxAll-${WXVER}.tar
77ffb593
JS
285$TAR cf $WXDEST/wxAll-${WXVER}.tar wxWidgets-${WXVER}/*
286rm -f -r wxWidgets-${WXVER}
42d9875b
JS
287gzip -c $WXDEST/wxAll-${WXVER}.tar > $WXDEST/wxAll-${WXVER}.tar.gz
288bzip2 $WXDEST/wxAll-${WXVER}.tar
2b5f62a0 289}
6b978929 290
2b5f62a0
VZ
291dospinwxdocs()
292{
293echo Tarring wxDocs...
6b978929 294
33b64e6f 295### Doc sources
2b5f62a0
VZ
296#cd $WXSRC
297#cat $WXSRC/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
94d86127 298#expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
77ffb593 299#$TAR cf $WXDEST/wxWidgets-${WXVER}-doc.tar -T /tmp/docsrc.txt
94d86127
JS
300#
301#echo Re-tarring docs in a subdirectory...
2b5f62a0 302#cd $WXDEST
77ffb593
JS
303#mkdir wxWidgets-${WXVER}
304#cd wxWidgets-${WXVER}
305#$TAR xf ../wxWidgets-${WXVER}-doc.tar
94d86127 306#cd ..
77ffb593
JS
307#rm -f wxWidgets-${WXVER}-doc.tar
308#$TAR cf $WXDEST/wxWidgets-${WXVER}-doc.tar wxWidgets-${WXVER}/*
309#rm -f -r wxWidgets-${WXVER}
310#gzip $WXDEST/wxWidgets-${WXVER}-doc.tar
33b64e6f
JS
311
312### HTML docs
2b5f62a0
VZ
313cd $WXSRC
314cat $WXSRC/distrib/msw/wx_html.rsp > /tmp/html_in.txt
8f8edad8 315expandlines /tmp/html_in.txt /tmp/html.txt
77ffb593 316$TAR cf $WXDEST/wxWidgets-${WXVER}-HTML.tar -T /tmp/html.txt
332b8edb
JS
317
318echo Re-tarring HTML in a subdirectory...
2b5f62a0 319cd $WXDEST
77ffb593
JS
320mkdir wxWidgets-${WXVER}
321cd wxWidgets-${WXVER}
322$TAR xf ../wxWidgets-${WXVER}-HTML.tar
332b8edb 323cd ..
77ffb593
JS
324rm -f wxWidgets-${WXVER}-HTML.tar
325$TAR cf $WXDEST/wxWidgets-${WXVER}-HTML.tar wxWidgets-${WXVER}/*
326rm -f -r wxWidgets-${WXVER}
327gzip $WXDEST/wxWidgets-${WXVER}-HTML.tar
33b64e6f 328
94d86127 329### HTB docs
2b5f62a0
VZ
330cd $WXSRC
331cat $WXSRC/distrib/msw/wx_htb.rsp > /tmp/htb_in.txt
94d86127 332expandlines /tmp/htb_in.txt /tmp/htb.txt
77ffb593 333$TAR cf $WXDEST/wxWidgets-${WXVER}-HTB.tar -T /tmp/htb.txt
94d86127
JS
334
335echo Re-tarring HTB in a subdirectory...
2b5f62a0 336cd $WXDEST
77ffb593
JS
337mkdir wxWidgets-${WXVER}
338cd wxWidgets-${WXVER}
339$TAR xf ../wxWidgets-${WXVER}-HTB.tar
94d86127 340cd ..
77ffb593
JS
341rm -f wxWidgets-${WXVER}-HTB.tar
342$TAR cf $WXDEST/wxWidgets-${WXVER}-HTB.tar wxWidgets-${WXVER}/*
343rm -f -r wxWidgets-${WXVER}
344gzip $WXDEST/wxWidgets-${WXVER}-HTB.tar
94d86127 345
33b64e6f 346### PDF docs
2b5f62a0
VZ
347cd $WXSRC
348cat $WXSRC/distrib/msw/wx_pdf.rsp > /tmp/pdf_in.txt
8f8edad8 349expandlines /tmp/pdf_in.txt /tmp/pdf.txt
77ffb593 350$TAR cf $WXDEST/wxWidgets-${WXVER}-PDF.tar -T /tmp/pdf.txt
332b8edb
JS
351
352echo Re-tarring PDF in a subdirectory...
2b5f62a0 353cd $WXDEST
77ffb593
JS
354mkdir wxWidgets-${WXVER}
355cd wxWidgets-${WXVER}
356$TAR xf ../wxWidgets-${WXVER}-PDF.tar
332b8edb 357cd ..
77ffb593
JS
358rm -f wxWidgets-${WXVER}-PDF.tar
359$TAR cf $WXDEST/wxWidgets-${WXVER}-PDF.tar wxWidgets-${WXVER}/*
360rm -f -r wxWidgets-${WXVER}
361gzip $WXDEST/wxWidgets-${WXVER}-PDF.tar
2b5f62a0 362}
33b64e6f 363
33b64e6f 364### Tex2RTF
2b5f62a0
VZ
365#cd $WXSRC
366#cat $WXSRC/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
94d86127 367#expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
77ffb593 368#$TAR cf $WXDEST/wxWidgets-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
94d86127
JS
369#
370#echo Re-tarring Tex2RTF in a subdirectory...
2b5f62a0 371#cd $WXDEST
77ffb593
JS
372#mkdir wxWidgets-${WXVER}
373#cd wxWidgets-${WXVER}
374#$TAR xf ../wxWidgets-${WXVER}-tex2rtf.tar
94d86127 375#cd ..
77ffb593
JS
376#rm -f wxWidgets-${WXVER}-tex2rtf.tar
377#$TAR cf $WXDEST/wxWidgets-${WXVER}-tex2rtf.tar wxWidgets-${WXVER}/*
378#rm -f -r wxWidgets-${WXVER}
379#gzip $WXDEST/wxWidgets-${WXVER}-tex2rtf.tar
33b64e6f
JS
380
381### OGL
2b5f62a0
VZ
382#cd $WXSRC
383#cat $WXSRC/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
94d86127 384#expandlines /tmp/ogl_in.txt /tmp/ogl.txt
77ffb593 385#$TAR cf $WXDEST/wxWidgets-${WXVER}-ogl.tar -T /tmp/ogl.txt
94d86127
JS
386#
387#echo Re-tarring OGL in a subdirectory...
2b5f62a0 388#cd $WXDEST
77ffb593
JS
389#mkdir wxWidgets-${WXVER}
390#cd wxWidgets-${WXVER}
391#$TAR xf ../wxWidgets-${WXVER}-ogl.tar
94d86127 392#cd ..
77ffb593
JS
393#rm -f wxWidgets-${WXVER}-ogl.tar
394#$TAR cf $WXDEST/wxWidgets-${WXVER}-ogl.tar wxWidgets-${WXVER}/*
395#rm -f -r wxWidgets-${WXVER}
396#gzip $WXDEST/wxWidgets-${WXVER}-ogl.tar
33b64e6f 397
75737d05 398### JPEG
2b5f62a0
VZ
399#cd $WXSRC
400#cat $WXSRC/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
94d86127 401#expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
77ffb593 402#$TAR cf $WXDEST/wxWidgets-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
94d86127
JS
403#
404#echo Re-tarring jpeg in a subdirectory...
2b5f62a0 405#cd $WXDEST
77ffb593
JS
406#mkdir wxWidgets-${WXVER}
407#cd wxWidgets-${WXVER}
408#$TAR xf ../wxWidgets-${WXVER}-jpeg.tar
94d86127 409#cd ..
77ffb593
JS
410#rm -f wxWidgets-${WXVER}-jpeg.tar
411#$TAR cf $WXDEST/wxWidgets-${WXVER}-jpeg.tar wxWidgets-${WXVER}/*
412#rm -f -r wxWidgets-${WXVER}
413#gzip $WXDEST/wxWidgets-${WXVER}-jpeg.tar
75737d05 414
f6bcfd97 415### TIFF
2b5f62a0
VZ
416#cd $WXSRC
417#cat $WXSRC/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
94d86127 418#expandlines /tmp/tiff_in.txt /tmp/tiff.txt
77ffb593 419#$TAR cf $WXDEST/wxWidgets-${WXVER}-tiff.tar -T /tmp/tiff.txt
94d86127
JS
420#
421#echo Re-tarring docs in a subdirectory...
2b5f62a0 422#cd $WXDEST
77ffb593
JS
423#mkdir wxWidgets-${WXVER}
424#cd wxWidgets-${WXVER}
425#$TAR xf ../wxWidgets-${WXVER}-tiff.tar
94d86127 426#cd ..
77ffb593
JS
427#rm -f wxWidgets-${WXVER}-tiff.tar
428#$TAR cf $WXDEST/wxWidgets-${WXVER}-tiff.tar wxWidgets-${WXVER}/*
429#rm -f -r wxWidgets-${WXVER}
430#gzip $WXDEST/wxWidgets-${WXVER}-tiff.tar
2b5f62a0
VZ
431
432init=""
433if [ "$1" = "" ]
434then
435 echo Usage: tardist wx-dir output-dir version
436 exit
437fi
438
439if [ "$2" = "" ]
440then
441 echo Usage: tardist wx-dir output-dir version
442 exit
443fi
444
445if [ "$3" = "" ]
446then
447 echo Usage: tardist wx-dir output-dir version
448 exit
449fi
450
451PROGNAME=$0
452WXSRC=$1
453WXDEST=$2
454WXVER=$3
455
456SPINWXALL=0
457SPINWXX11=0
458SPINWXGTK=0
459SPINWXMOTIF=0
460SPINWXMAC=0
461SPINWXDOCS=0
462SPINEVERYTHING=0
463
464usage()
465{
466 echo Usage: $PROGNAME "src-dir dest-dir version-number [ options ]"
467 echo Options:
468 echo " --help Display this help message"
469 echo " --wxall Spin wxAll"
470 echo " --wxgtk Spin wxGTK"
471 echo " --wxmotif Spin wxMotif"
472 echo " --wxmac Spin wxMac"
473 echo " --wxx11 Spin wxX11"
474 echo " --wxdocs Spin docs"
475 echo " --all Spin EVERYTHING"
476
477 exit 1
478}
479
480# Process command line options.
481shift 3
482for i in "$@"; do
483 case "$i" in
484 --wxall) SPINWXALL=1 ;;
485 --wxx11) SPINWXX11=1 ;;
486 --wxgtk) SPINWXGTK=1 ;;
487 --wxmotif) SPINWXMOTIF=1 ;;
488 --wxmac) SPINWXMAC=1 ;;
489 --wxdocs) SPINWXDOCS=1 ;;
490 --all) SPINEVERYTHING=1 ;;
491 *)
492 usage
493 exit
494 ;;
495 esac
496done
497
77ffb593 498echo About to archive wxWidgets:
2b5f62a0
VZ
499echo From $WXSRC
500echo To $WXDEST
501echo Version $WXVER
502echo CTRL-C if this is not correct.
503read dummy
504
505doinit
506
507if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
508 dospinwxx11
509fi
510
511if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
512 dospinwxgtk
513fi
514
515if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
516 dospinwxmac
517fi
518
519if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
520 dospinwxmotif
521fi
522
523if [ "$SPINWXDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
524 dospinwxdocs
525fi
526
527if [ "$SPINWXALL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
528 dospinwxall
529fi
530