2 # tardist: make up a tar.gz distribution of wxWindows 2
3 # Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
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
12 if [ "$ARCH" = "ppc" ]; then
23 for line
in `cat $toexpand` ; do
24 if [ "$line" != "" ]; then
25 ls $line >> $outputfile
27 uniq < $outputfile > /tmp
/uniqtemp.txt
28 mv /tmp
/uniqtemp.txt
$outputfile
36 echo Usage
: tardist wx
-dir output
-dir version
42 echo Usage
: tardist wx
-dir output
-dir version
48 echo Usage
: tardist wx
-dir output
-dir version
54 echo About to archive wxWindows
:
57 echo CTRL
-C if this is not correct.
62 echo Removing backup files...
63 rm *~
*/*~
*/*/*~
*/*/*/*~
*/*/*/*/*~
65 rm -f $2/wx
*-${WXVER}*.
tar.gz
70 #cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp > /tmp/wxgen_in.txt
71 #expandlines /tmp/wxgen_in.txt /tmp/wxgen.txt
72 #$TAR cf $2/wxWindows-${WXVER}-gen.tar -T /tmp/wxgen.txt
73 #gzip $2/wxWindows-${WXVER}-gen.tar
74 #mv $2/wxWindows-${WXVER}-gen.tar.gz $2/wxWindows-${WXVER}-gen.tgz
78 cat $1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/utils.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/tex2rtf.rsp
$1/distrib
/msw
/dialoged.rsp
$1/distrib
/msw
/gtk.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxgtk_in.txt
79 expandlines
/tmp
/wxgtk_in.txt
/tmp
/wxgtk.txt
80 $TAR cf
$2/wxGTK
-${WXVER}.
tar -T /tmp
/wxgtk.txt
82 echo Re
-tarring wxGTK
in a subdirectory...
84 mkdir wxWindows
-${WXVER}
86 $TAR xf ..
/wxGTK
-${WXVER}.
tar
88 rm -f wxGTK
-${WXVER}.
tar
89 $TAR cf
$2/wxGTK
-${WXVER}.
tar wxWindows
-${WXVER}/*
90 rm -f -r wxWindows
-${WXVER}
91 gzip $2/wxGTK
-${WXVER}.
tar
95 cat $1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/motif.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxmotif_in.txt
96 expandlines
/tmp
/wxmotif_in.txt
/tmp
/wxmotif.txt
97 $TAR cf
$2/wxMotif
-${WXVER}.
tar -T /tmp
/wxmotif.txt
99 echo Re
-tarring wxMotif
in a subdirectory...
101 mkdir wxWindows
-${WXVER}
102 cd wxWindows
-${WXVER}
103 $TAR xf ..
/wxMotif
-${WXVER}.
tar
105 rm -f wxMotif
-${WXVER}.
tar
106 $TAR cf
$2/wxMotif
-${WXVER}.
tar wxWindows
-${WXVER}/*
107 rm -f -r wxWindows
-${WXVER}
108 gzip $2/wxMotif
-${WXVER}.
tar
110 ### wxX11: combined wxMotif and wxX11 distributions
112 cat $1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/motif.rsp
$1/distrib
/msw
/x11.rsp
$1/distrib
/msw
/univ.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/utils.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/dialoged.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxx11_in.txt
113 expandlines
/tmp
/wxx11_in.txt
/tmp
/wxx11.txt
114 $TAR cf
$2/wxX11
-${WXVER}.
tar -T /tmp
/wxx11.txt
116 echo Re
-tarring wxX11
in a subdirectory...
118 mkdir wxWindows
-${WXVER}
119 cd wxWindows
-${WXVER}
120 $TAR xf ..
/wxX11
-${WXVER}.
tar
122 rm -f wxX11
-${WXVER}.
tar
123 $TAR cf
$2/wxX11
-${WXVER}.
tar wxWindows
-${WXVER}/*
124 rm -f -r wxWindows
-${WXVER}
125 gzip $2/wxX11
-${WXVER}.
tar
129 # cat $1/distrib/msw/msw.rsp $1/distrib/msw/vc.rsp $1/distrib/msw/bc.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp > /tmp/wxmsw_in.txt
130 # expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
131 # $TAR cf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
132 # gzip $2/wxMSW-${WXVER}.tar
136 cat $1/distrib
/msw
/mac.rsp
$1/distrib
/msw
/generic.rsp
$1/distrib
/msw
/cw.rsp
$1/distrib
/msw
/tex2rtf.rsp
$1/distrib
/msw
/utils.rsp
$1/distrib
/msw
/dialoged.rsp
$1/distrib
/msw
/ogl.rsp
$1/distrib
/msw
/stc.rsp
$1/distrib
/msw
/xml.rsp
$1/distrib
/msw
/contrib.rsp
$1/distrib
/msw
/makefile.rsp
$1/distrib
/msw
/tiff.rsp
$1/distrib
/msw
/jpeg.rsp
> /tmp
/wxmac_in.txt
137 expandlines
/tmp
/wxmac_in.txt
/tmp
/wxmac.txt
138 $TAR cf
$2/wxMac
-${WXVER}.
tar -T /tmp
/wxmac.txt
140 echo Re
-tarring wxMac
in a subdirectory...
142 mkdir wxWindows
-${WXVER}
143 cd wxWindows
-${WXVER}
144 $TAR xf ..
/wxMac
-${WXVER}.
tar
145 rm -f -r contrib
/src
/mmedia contrib
/samples
/mmedia
147 rm -f wxMac
-${WXVER}.
tar
148 $TAR cf
$2/wxMac
-${WXVER}.
tar wxWindows
-${WXVER}/*
149 rm -f -r wxWindows
-${WXVER}
150 gzip $2/wxMac
-${WXVER}.
tar
154 #cat $1/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
155 #expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
156 #$TAR cf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
158 #echo Re-tarring docs in a subdirectory...
160 #mkdir wxWindows-${WXVER}
161 #cd wxWindows-${WXVER}
162 #$TAR xf ../wxWindows-${WXVER}-doc.tar
164 #rm -f wxWindows-${WXVER}-doc.tar
165 #$TAR cf $2/wxWindows-${WXVER}-doc.tar wxWindows-${WXVER}/*
166 #rm -f -r wxWindows-${WXVER}
167 #gzip $2/wxWindows-${WXVER}-doc.tar
171 cat $1/distrib
/msw
/wx_html.rsp
> /tmp
/html_in.txt
172 expandlines
/tmp
/html_in.txt
/tmp
/html.txt
173 $TAR cf
$2/wxWindows
-${WXVER}-html.
tar -T /tmp
/html.txt
175 echo Re
-tarring HTML
in a subdirectory...
177 mkdir wxWindows
-${WXVER}
178 cd wxWindows
-${WXVER}
179 $TAR xf ..
/wxWindows
-${WXVER}-html.
tar
181 rm -f wxWindows
-${WXVER}-html.
tar
182 $TAR cf
$2/wxWindows
-${WXVER}-html.
tar wxWindows
-${WXVER}/*
183 rm -f -r wxWindows
-${WXVER}
184 gzip $2/wxWindows
-${WXVER}-html.
tar
188 cat $1/distrib
/msw
/wx_htb.rsp
> /tmp
/htb_in.txt
189 expandlines
/tmp
/htb_in.txt
/tmp
/htb.txt
190 $TAR cf
$2/wxWindows
-${WXVER}-htb.
tar -T /tmp
/htb.txt
192 echo Re
-tarring HTB
in a subdirectory...
194 mkdir wxWindows
-${WXVER}
195 cd wxWindows
-${WXVER}
196 $TAR xf ..
/wxWindows
-${WXVER}-htb.
tar
198 rm -f wxWindows
-${WXVER}-htb.
tar
199 $TAR cf
$2/wxWindows
-${WXVER}-htb.
tar wxWindows
-${WXVER}/*
200 rm -f -r wxWindows
-${WXVER}
201 gzip $2/wxWindows
-${WXVER}-htb.
tar
205 cat $1/distrib
/msw
/wx_pdf.rsp
> /tmp
/pdf_in.txt
206 expandlines
/tmp
/pdf_in.txt
/tmp
/pdf.txt
207 $TAR cf
$2/wxWindows
-${WXVER}-pdf.
tar -T /tmp
/pdf.txt
209 echo Re
-tarring PDF
in a subdirectory...
211 mkdir wxWindows
-${WXVER}
212 cd wxWindows
-${WXVER}
213 $TAR xf ..
/wxWindows
-${WXVER}-pdf.
tar
215 rm -f wxWindows
-${WXVER}-pdf.
tar
216 $TAR cf
$2/wxWindows
-${WXVER}-pdf.
tar wxWindows
-${WXVER}/*
217 rm -f -r wxWindows
-${WXVER}
218 gzip $2/wxWindows
-${WXVER}-pdf.
tar
222 #cat $1/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
223 #expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
224 #$TAR cf $2/wxWindows-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
226 #echo Re-tarring Tex2RTF in a subdirectory...
228 #mkdir wxWindows-${WXVER}
229 #cd wxWindows-${WXVER}
230 #$TAR xf ../wxWindows-${WXVER}-tex2rtf.tar
232 #rm -f wxWindows-${WXVER}-tex2rtf.tar
233 #$TAR cf $2/wxWindows-${WXVER}-tex2rtf.tar wxWindows-${WXVER}/*
234 #rm -f -r wxWindows-${WXVER}
235 #gzip $2/wxWindows-${WXVER}-tex2rtf.tar
239 #cat $1/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
240 #expandlines /tmp/ogl_in.txt /tmp/ogl.txt
241 #$TAR cf $2/wxWindows-${WXVER}-ogl.tar -T /tmp/ogl.txt
243 #echo Re-tarring OGL in a subdirectory...
245 #mkdir wxWindows-${WXVER}
246 #cd wxWindows-${WXVER}
247 #$TAR xf ../wxWindows-${WXVER}-ogl.tar
249 #rm -f wxWindows-${WXVER}-ogl.tar
250 #$TAR cf $2/wxWindows-${WXVER}-ogl.tar wxWindows-${WXVER}/*
251 #rm -f -r wxWindows-${WXVER}
252 #gzip $2/wxWindows-${WXVER}-ogl.tar
256 #cat $1/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
257 #expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
258 #$TAR cf $2/wxWindows-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
260 #echo Re-tarring jpeg in a subdirectory...
262 #mkdir wxWindows-${WXVER}
263 #cd wxWindows-${WXVER}
264 #$TAR xf ../wxWindows-${WXVER}-jpeg.tar
266 #rm -f wxWindows-${WXVER}-jpeg.tar
267 #$TAR cf $2/wxWindows-${WXVER}-jpeg.tar wxWindows-${WXVER}/*
268 #rm -f -r wxWindows-${WXVER}
269 #gzip $2/wxWindows-${WXVER}-jpeg.tar
273 #cat $1/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
274 #expandlines /tmp/tiff_in.txt /tmp/tiff.txt
275 #$TAR cf $2/wxWindows-${WXVER}-tiff.tar -T /tmp/tiff.txt
277 #echo Re-tarring docs in a subdirectory...
279 #mkdir wxWindows-${WXVER}
280 #cd wxWindows-${WXVER}
281 #$TAR xf ../wxWindows-${WXVER}-tiff.tar
283 #rm -f wxWindows-${WXVER}-tiff.tar
284 #$TAR cf $2/wxWindows-${WXVER}-tiff.tar wxWindows-${WXVER}/*
285 #rm -f -r wxWindows-${WXVER}
286 #gzip $2/wxWindows-${WXVER}-tiff.tar
288 # Copy readme and other files
290 cp $1/docs
/readme.txt
$2/readme
-${WXVER}.txt
291 cp $1/docs
/changes.txt
$2/changes
-${WXVER}.txt
292 cp $1/docs
/mgl
/readme.txt
$2/readme
-mgl-${WXVER}.txt
293 cp $1/docs
/mgl
/install.txt
$2/install-mgl-${WXVER}.txt
294 cp $1/docs
/x
11/readme.txt
$2/readme
-x11-${WXVER}.txt
295 cp $1/docs
/x
11/readme
-nanox.txt
$2/readme
-nanox-${WXVER}.txt
296 cp $1/docs
/x
11/install.txt
$2/install-x11-${WXVER}.txt
297 cp $1/docs
/motif
/readme.txt
$2/readme
-motif-${WXVER}.txt
298 cp $1/docs
/motif
/install.txt
$2/install-motif-${WXVER}.txt
299 cp $1/docs
/msw
/readme.txt
$2/readme
-msw-${WXVER}.txt
300 cp $1/docs
/msw
/install.txt
$2/install-msw-${WXVER}.txt
301 cp $1/docs
/gtk
/readme.txt
$2/readme
-gtk-${WXVER}.txt
302 cp $1/docs
/gtk
/install.txt
$2/install-gtk-${WXVER}.txt
303 cp $1/docs
/mac
/readme.txt
$2/readme
-mac-${WXVER}.txt
304 cp $1/docs
/mac
/install.txt
$2/install-mac-${WXVER}.txt
305 cp $1/docs
/os
2/install.txt
$2/install-os2-${WXVER}.txt