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