]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # tardist: make up a tar.gz distribution of wxWidgets 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/wxWidgets-$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 | ||
49 | cp $WXSRC/docs/mgl/readme.txt $WXDEST/readme-mgl-${WXVER}.txt | |
50 | cp $WXSRC/docs/mgl/install.txt $WXDEST/install-mgl-${WXVER}.txt | |
51 | ||
52 | cp $WXSRC/docs/x11/readme.txt $WXDEST/readme-x11-${WXVER}.txt | |
53 | # cp $WXSRC/docs/x11/readme-nanox.txt $WXDEST/readme-nanox-${WXVER}.txt | |
54 | cp $WXSRC/docs/x11/install.txt $WXDEST/install-x11-${WXVER}.txt | |
55 | ||
56 | cp $WXSRC/docs/motif/readme.txt $WXDEST/readme-motif-${WXVER}.txt | |
57 | cp $WXSRC/docs/motif/install.txt $WXDEST/install-motif-${WXVER}.txt | |
58 | ||
59 | cp $WXSRC/docs/msw/readme.txt $WXDEST/readme-msw-${WXVER}.txt | |
60 | cp $WXSRC/docs/msw/install.txt $WXDEST/install-msw-${WXVER}.txt | |
61 | ||
62 | cp $WXSRC/docs/gtk/readme.txt $WXDEST/readme-gtk-${WXVER}.txt | |
63 | cp $WXSRC/docs/gtk/install.txt $WXDEST/install-gtk-${WXVER}.txt | |
64 | ||
65 | cp $WXSRC/docs/mac/readme.txt $WXDEST/readme-mac-${WXVER}.txt | |
66 | cp $WXSRC/docs/mac/install.txt $WXDEST/install-mac-${WXVER}.txt | |
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 | ||
71 | cp $WXSRC/docs/os2/install.txt $WXDEST/install-os2-${WXVER}.txt | |
72 | ||
73 | # Make .mo files | |
74 | cd $WXSRC/locale | |
75 | make allmo | |
76 | } | |
77 | ||
78 | dospinwxgtk() | |
79 | { | |
80 | echo Tarring wxGTK... | |
81 | ||
82 | cd $WXSRC | |
83 | cat $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 | |
84 | expandlines /tmp/wxgtk_in.txt /tmp/wxgtk.txt | |
85 | $TAR cf $WXDEST/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt | |
86 | ||
87 | echo Re-tarring wxGTK in a subdirectory... | |
88 | cd $WXDEST | |
89 | mkdir wxGTK-${WXVER} | |
90 | cd wxGTK-${WXVER} | |
91 | $TAR xf ../wxGTK-${WXVER}.tar | |
92 | echo Copying readme files... | |
93 | cp $WXSRC/docs/gtk/readme.txt README-GTK.txt | |
94 | cp $WXSRC/docs/gtk/install.txt INSTALL-GTK.txt | |
95 | cp $WXSRC/docs/readme.txt README.txt | |
96 | cp $WXSRC/docs/changes.txt CHANGES.txt | |
97 | cp $WXSRC/docs/licence.txt LICENCE.txt | |
98 | cp $WXSRC/docs/lgpl.txt COPYING.LIB | |
99 | cd .. | |
100 | rm -f wxGTK-${WXVER}.tar | |
101 | $TAR cf $WXDEST/wxGTK-${WXVER}.tar wxGTK-${WXVER}/* | |
102 | rm -f -r wxGTK-${WXVER} | |
103 | gzip $WXDEST/wxGTK-${WXVER}.tar | |
104 | } | |
105 | ||
106 | dospinwxmotif() | |
107 | { | |
108 | echo Tarring wxMotif... | |
109 | ||
110 | cd $WXSRC | |
111 | cat $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 | |
112 | expandlines /tmp/wxmotif_in.txt /tmp/wxmotif.txt | |
113 | $TAR cf $WXDEST/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt | |
114 | ||
115 | echo Re-tarring wxMotif in a subdirectory... | |
116 | cd $WXDEST | |
117 | mkdir wxMotif-${WXVER} | |
118 | cd wxMotif-${WXVER} | |
119 | $TAR xf ../wxMotif-${WXVER}.tar | |
120 | echo Copying readme files... | |
121 | cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt | |
122 | cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt | |
123 | cp $WXSRC/docs/readme.txt README.txt | |
124 | cp $WXSRC/docs/changes.txt CHANGES.txt | |
125 | cp $WXSRC/docs/licence.txt LICENCE.txt | |
126 | cp $WXSRC/docs/lgpl.txt COPYING.LIB | |
127 | cd .. | |
128 | rm -f wxMotif-${WXVER}.tar | |
129 | $TAR cf $WXDEST/wxMotif-${WXVER}.tar wxMotif-${WXVER}/* | |
130 | rm -f -r wxMotif-${WXVER} | |
131 | gzip $WXDEST/wxMotif-${WXVER}.tar | |
132 | } | |
133 | ||
134 | dospinwxx11() | |
135 | { | |
136 | echo Tarring wxX11... | |
137 | ||
138 | ### wxX11: combined wxMotif and wxX11 distributions | |
139 | cd $WXSRC | |
140 | 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/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 | |
141 | expandlines /tmp/wxx11_in.txt /tmp/wxx11.txt | |
142 | $TAR cf $WXDEST/wxX11-${WXVER}.tar -T /tmp/wxx11.txt | |
143 | ||
144 | echo Re-tarring wxX11 in a subdirectory... | |
145 | cd $WXDEST | |
146 | mkdir wxX11-${WXVER} | |
147 | cd wxX11-${WXVER} | |
148 | $TAR xf ../wxX11-${WXVER}.tar | |
149 | echo Copying readme files... | |
150 | cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt | |
151 | cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt | |
152 | cp $WXSRC/docs/x11/readme.txt README-X11.txt | |
153 | cp $WXSRC/docs/x11/install.txt INSTALL-X11.txt | |
154 | cp $WXSRC/docs/readme.txt README.txt | |
155 | cp $WXSRC/docs/changes.txt CHANGES.txt | |
156 | cp $WXSRC/docs/licence.txt LICENCE.txt | |
157 | cp $WXSRC/docs/lgpl.txt COPYING.LIB | |
158 | cd .. | |
159 | rm -f wxX11-${WXVER}.tar | |
160 | $TAR cf $WXDEST/wxX11-${WXVER}.tar wxX11-${WXVER}/* | |
161 | rm -f -r wxX11-${WXVER} | |
162 | gzip $WXDEST/wxX11-${WXVER}.tar | |
163 | } | |
164 | ||
165 | ### wxMSW | |
166 | # cd $WXSRC | |
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 | |
168 | # expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt | |
169 | # $TAR cf $WXDEST/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt | |
170 | # gzip $WXDEST/wxMSW-${WXVER}.tar | |
171 | ||
172 | dospinwxmac() | |
173 | { | |
174 | echo Tarring wxMac... | |
175 | ### wxMac | |
176 | cp $WXSRC/include/wx/mac/setup0.h $WXSRC/include/wx/setup.h | |
177 | cd $WXSRC | |
178 | cat $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 | |
179 | expandlines /tmp/wxmac_in.txt /tmp/wxmac.txt | |
180 | $TAR cf $WXDEST/wxMac-${WXVER}.tar -T /tmp/wxmac.txt | |
181 | ||
182 | rm -f $WXSRC/include/wx/setup.h | |
183 | ||
184 | echo Re-tarring wxMac in a subdirectory... | |
185 | cd $WXDEST | |
186 | mkdir wxMac-${WXVER} | |
187 | cd wxMac-${WXVER} | |
188 | ||
189 | # If we have the full set of Mac CW project files, | |
190 | # get them | |
191 | if [ -f $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip ]; then | |
192 | unzip -o $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip | |
193 | else | |
194 | echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-CW-Mac.zip" | |
195 | fi | |
196 | ||
197 | $TAR xf ../wxMac-${WXVER}.tar | |
198 | rm -f -r contrib/src/mmedia contrib/samples/mmedia | |
199 | echo Copying readme files... | |
200 | cp $WXSRC/docs/mac/readme.txt README-MAC.txt | |
201 | cp $WXSRC/docs/mac/install.txt INSTALL-MAC.txt | |
202 | cp $WXSRC/docs/readme.txt README.txt | |
203 | cp $WXSRC/docs/changes.txt CHANGES.txt | |
204 | cp $WXSRC/docs/licence.txt LICENCE.txt | |
205 | cp $WXSRC/docs/lgpl.txt COPYING.LIB | |
206 | cd .. | |
207 | rm -f wxMac-${WXVER}.tar | |
208 | $TAR cf $WXDEST/wxMac-${WXVER}.tar wxMac-${WXVER}/* | |
209 | rm -f -r wxMac-${WXVER} | |
210 | gzip $WXDEST/wxMac-${WXVER}.tar | |
211 | } | |
212 | ||
213 | ### wxUniv: universal-specific files | |
214 | #cd $WXSRC | |
215 | #cat $WXSRC/distrib/msw/univ.rsp > /tmp/wxuniv_in.txt | |
216 | #expandlines /tmp/wxuniv_in.txt /tmp/wxuniv.txt | |
217 | #$TAR cf $WXDEST/wxWidgets-${WXVER}-Univ.tar -T /tmp/wxuniv.txt | |
218 | # | |
219 | #echo Re-tarring wxUniversal in a subdirectory... | |
220 | #cd $WXDEST | |
221 | #mkdir wxWidgets-${WXVER} | |
222 | #cd wxWidgets-${WXVER} | |
223 | #$TAR xf ../wxWidgets-${WXVER}-Univ.tar | |
224 | #cd .. | |
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 | |
229 | ||
230 | dospinwxall() | |
231 | { | |
232 | echo Tarring wxAll... | |
233 | ||
234 | ### wxAll: all distributions in one giant archive | |
235 | cd $WXSRC | |
236 | cat $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 | |
237 | expandlines /tmp/wxall_in.txt /tmp/wxall.txt | |
238 | $TAR cf $WXDEST/wxAll-${WXVER}.tar -T /tmp/wxall.txt | |
239 | ||
240 | echo Re-tarring wxAll in a subdirectory... | |
241 | cd $WXDEST | |
242 | mkdir wxWidgets-${WXVER} | |
243 | ||
244 | cd wxWidgets-${WXVER} | |
245 | ||
246 | # If we have the full set of VC++ project files, | |
247 | # get them | |
248 | if [ -f $WXDEST/extra/wxWidgets-${WXVER}-VC.zip ]; then | |
249 | unzip -o $WXDEST/extra/wxWidgets-${WXVER}-VC.zip | |
250 | else | |
251 | echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-VC.zip" | |
252 | fi | |
253 | ||
254 | # If we have the full set of Mac CW project files, | |
255 | # get them | |
256 | if [ -f $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip ]; then | |
257 | unzip -o $WXDEST/extra/wxWidgets-${WXVER}-CW-Mac.zip | |
258 | else | |
259 | echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-CW-Mac.zip" | |
260 | fi | |
261 | ||
262 | $TAR xf ../wxAll-${WXVER}.tar | |
263 | ||
264 | # Translate all .dsp and .dsw files to DOS format | |
265 | unix2dos --unix2dos `cat $WXSRC/distrib/msw/vc.rsp` | |
266 | ||
267 | echo Copying readme files... | |
268 | cp $WXSRC/docs/readme.txt README.txt | |
269 | cp $WXSRC/docs/changes.txt CHANGES.txt | |
270 | cp $WXSRC/docs/licence.txt LICENCE.txt | |
271 | cp $WXSRC/docs/lgpl.txt COPYING.LIB | |
272 | cp $WXSRC/docs/motif/readme.txt README-MOTIF.txt | |
273 | cp $WXSRC/docs/motif/install.txt INSTALL-MOTIF.txt | |
274 | cp $WXSRC/docs/x11/readme.txt README-X11.txt | |
275 | cp $WXSRC/docs/x11/install.txt INSTALL-X11.txt | |
276 | cp $WXSRC/docs/mac/readme.txt README-MAC.txt | |
277 | cp $WXSRC/docs/mac/install.txt INSTALL-MAC.txt | |
278 | cp $WXSRC/docs/mgl/readme.txt README-MGL.txt | |
279 | cp $WXSRC/docs/mgl/install.txt INSTALL-MGL.txt | |
280 | #cp $WXSRC/docs/os2/readme.txt README-OS2.txt | |
281 | cp $WXSRC/docs/os2/install.txt INSTALL-OS2.txt | |
282 | ||
283 | cd .. | |
284 | rm -f wxAll-${WXVER}.tar | |
285 | $TAR cf $WXDEST/wxAll-${WXVER}.tar wxWidgets-${WXVER}/* | |
286 | rm -f -r wxWidgets-${WXVER} | |
287 | gzip -c $WXDEST/wxAll-${WXVER}.tar > $WXDEST/wxAll-${WXVER}.tar.gz | |
288 | bzip2 $WXDEST/wxAll-${WXVER}.tar | |
289 | } | |
290 | ||
291 | dospinwxdocs() | |
292 | { | |
293 | echo Tarring wxDocs... | |
294 | ||
295 | ### Doc sources | |
296 | #cd $WXSRC | |
297 | #cat $WXSRC/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt | |
298 | #expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt | |
299 | #$TAR cf $WXDEST/wxWidgets-${WXVER}-doc.tar -T /tmp/docsrc.txt | |
300 | # | |
301 | #echo Re-tarring docs in a subdirectory... | |
302 | #cd $WXDEST | |
303 | #mkdir wxWidgets-${WXVER} | |
304 | #cd wxWidgets-${WXVER} | |
305 | #$TAR xf ../wxWidgets-${WXVER}-doc.tar | |
306 | #cd .. | |
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 | |
311 | ||
312 | ### HTML docs | |
313 | cd $WXSRC | |
314 | cat $WXSRC/distrib/msw/wx_html.rsp > /tmp/html_in.txt | |
315 | expandlines /tmp/html_in.txt /tmp/html.txt | |
316 | $TAR cf $WXDEST/wxWidgets-${WXVER}-HTML.tar -T /tmp/html.txt | |
317 | ||
318 | echo Re-tarring HTML in a subdirectory... | |
319 | cd $WXDEST | |
320 | mkdir wxWidgets-${WXVER} | |
321 | cd wxWidgets-${WXVER} | |
322 | $TAR xf ../wxWidgets-${WXVER}-HTML.tar | |
323 | cd .. | |
324 | rm -f wxWidgets-${WXVER}-HTML.tar | |
325 | $TAR cf $WXDEST/wxWidgets-${WXVER}-HTML.tar wxWidgets-${WXVER}/* | |
326 | rm -f -r wxWidgets-${WXVER} | |
327 | gzip $WXDEST/wxWidgets-${WXVER}-HTML.tar | |
328 | ||
329 | ### HTB docs | |
330 | cd $WXSRC | |
331 | cat $WXSRC/distrib/msw/wx_htb.rsp > /tmp/htb_in.txt | |
332 | expandlines /tmp/htb_in.txt /tmp/htb.txt | |
333 | $TAR cf $WXDEST/wxWidgets-${WXVER}-HTB.tar -T /tmp/htb.txt | |
334 | ||
335 | echo Re-tarring HTB in a subdirectory... | |
336 | cd $WXDEST | |
337 | mkdir wxWidgets-${WXVER} | |
338 | cd wxWidgets-${WXVER} | |
339 | $TAR xf ../wxWidgets-${WXVER}-HTB.tar | |
340 | cd .. | |
341 | rm -f wxWidgets-${WXVER}-HTB.tar | |
342 | $TAR cf $WXDEST/wxWidgets-${WXVER}-HTB.tar wxWidgets-${WXVER}/* | |
343 | rm -f -r wxWidgets-${WXVER} | |
344 | gzip $WXDEST/wxWidgets-${WXVER}-HTB.tar | |
345 | ||
346 | ### PDF docs | |
347 | cd $WXSRC | |
348 | cat $WXSRC/distrib/msw/wx_pdf.rsp > /tmp/pdf_in.txt | |
349 | expandlines /tmp/pdf_in.txt /tmp/pdf.txt | |
350 | $TAR cf $WXDEST/wxWidgets-${WXVER}-PDF.tar -T /tmp/pdf.txt | |
351 | ||
352 | echo Re-tarring PDF in a subdirectory... | |
353 | cd $WXDEST | |
354 | mkdir wxWidgets-${WXVER} | |
355 | cd wxWidgets-${WXVER} | |
356 | $TAR xf ../wxWidgets-${WXVER}-PDF.tar | |
357 | cd .. | |
358 | rm -f wxWidgets-${WXVER}-PDF.tar | |
359 | $TAR cf $WXDEST/wxWidgets-${WXVER}-PDF.tar wxWidgets-${WXVER}/* | |
360 | rm -f -r wxWidgets-${WXVER} | |
361 | gzip $WXDEST/wxWidgets-${WXVER}-PDF.tar | |
362 | } | |
363 | ||
364 | ### Tex2RTF | |
365 | #cd $WXSRC | |
366 | #cat $WXSRC/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt | |
367 | #expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt | |
368 | #$TAR cf $WXDEST/wxWidgets-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt | |
369 | # | |
370 | #echo Re-tarring Tex2RTF in a subdirectory... | |
371 | #cd $WXDEST | |
372 | #mkdir wxWidgets-${WXVER} | |
373 | #cd wxWidgets-${WXVER} | |
374 | #$TAR xf ../wxWidgets-${WXVER}-tex2rtf.tar | |
375 | #cd .. | |
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 | |
380 | ||
381 | ### OGL | |
382 | #cd $WXSRC | |
383 | #cat $WXSRC/distrib/msw/ogl.rsp > /tmp/ogl_in.txt | |
384 | #expandlines /tmp/ogl_in.txt /tmp/ogl.txt | |
385 | #$TAR cf $WXDEST/wxWidgets-${WXVER}-ogl.tar -T /tmp/ogl.txt | |
386 | # | |
387 | #echo Re-tarring OGL in a subdirectory... | |
388 | #cd $WXDEST | |
389 | #mkdir wxWidgets-${WXVER} | |
390 | #cd wxWidgets-${WXVER} | |
391 | #$TAR xf ../wxWidgets-${WXVER}-ogl.tar | |
392 | #cd .. | |
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 | |
397 | ||
398 | ### JPEG | |
399 | #cd $WXSRC | |
400 | #cat $WXSRC/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt | |
401 | #expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt | |
402 | #$TAR cf $WXDEST/wxWidgets-${WXVER}-jpeg.tar -T /tmp/jpeg.txt | |
403 | # | |
404 | #echo Re-tarring jpeg in a subdirectory... | |
405 | #cd $WXDEST | |
406 | #mkdir wxWidgets-${WXVER} | |
407 | #cd wxWidgets-${WXVER} | |
408 | #$TAR xf ../wxWidgets-${WXVER}-jpeg.tar | |
409 | #cd .. | |
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 | |
414 | ||
415 | ### TIFF | |
416 | #cd $WXSRC | |
417 | #cat $WXSRC/distrib/msw/tiff.rsp > /tmp/tiff_in.txt | |
418 | #expandlines /tmp/tiff_in.txt /tmp/tiff.txt | |
419 | #$TAR cf $WXDEST/wxWidgets-${WXVER}-tiff.tar -T /tmp/tiff.txt | |
420 | # | |
421 | #echo Re-tarring docs in a subdirectory... | |
422 | #cd $WXDEST | |
423 | #mkdir wxWidgets-${WXVER} | |
424 | #cd wxWidgets-${WXVER} | |
425 | #$TAR xf ../wxWidgets-${WXVER}-tiff.tar | |
426 | #cd .. | |
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 | |
431 | ||
432 | init="" | |
433 | if [ "$1" = "" ] | |
434 | then | |
435 | echo Usage: tardist wx-dir output-dir version | |
436 | exit | |
437 | fi | |
438 | ||
439 | if [ "$2" = "" ] | |
440 | then | |
441 | echo Usage: tardist wx-dir output-dir version | |
442 | exit | |
443 | fi | |
444 | ||
445 | if [ "$3" = "" ] | |
446 | then | |
447 | echo Usage: tardist wx-dir output-dir version | |
448 | exit | |
449 | fi | |
450 | ||
451 | PROGNAME=$0 | |
452 | WXSRC=$1 | |
453 | WXDEST=$2 | |
454 | WXVER=$3 | |
455 | ||
456 | SPINWXALL=0 | |
457 | SPINWXX11=0 | |
458 | SPINWXGTK=0 | |
459 | SPINWXMOTIF=0 | |
460 | SPINWXMAC=0 | |
461 | SPINWXDOCS=0 | |
462 | SPINEVERYTHING=0 | |
463 | ||
464 | usage() | |
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. | |
481 | shift 3 | |
482 | for 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 | |
496 | done | |
497 | ||
498 | echo About to archive wxWidgets: | |
499 | echo From $WXSRC | |
500 | echo To $WXDEST | |
501 | echo Version $WXVER | |
502 | echo CTRL-C if this is not correct. | |
503 | read dummy | |
504 | ||
505 | doinit | |
506 | ||
507 | if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then | |
508 | dospinwxx11 | |
509 | fi | |
510 | ||
511 | if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then | |
512 | dospinwxgtk | |
513 | fi | |
514 | ||
515 | if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then | |
516 | dospinwxmac | |
517 | fi | |
518 | ||
519 | if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then | |
520 | dospinwxmotif | |
521 | fi | |
522 | ||
523 | if [ "$SPINWXDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then | |
524 | dospinwxdocs | |
525 | fi | |
526 | ||
527 | if [ "$SPINWXALL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then | |
528 | dospinwxall | |
529 | fi | |
530 |