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