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