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