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
66 rm -f $2/tex2rtf2
-*.
tar.gz
67 rm -f $2/dialoged
-*.
tar.gz
68 rm -f $2/ogl3
-*.
tar.gz
69 rm -f $2/jpeg
-*.
tar.gz
70 rm -f $2/tiff
-*.
tar.gz
72 rm -f $2/canvas
-*.
tar.gz
73 rm -f $2/contrib
-*.
tar.gz
74 rm -f $2/applet
-*.
tar.gz
75 rm -f $2/wxxrc
-*.
tar.gz
80 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
81 expandlines
/tmp
/wxgen_in.txt
/tmp
/wxgen.txt
82 $TAR cf
$2/wxWindows
-${WXVER}-gen.
tar -T /tmp
/wxgen.txt
83 gzip $2/wxWindows
-${WXVER}-gen.
tar
84 mv $2/wxWindows
-${WXVER}-gen.
tar.gz
$2/wxWindows
-${WXVER}-gen.tgz
87 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
88 expandlines
/tmp
/wxgtk_in.txt
/tmp
/wxgtk.txt
89 $TAR cf
$2/wxGTK
-${WXVER}.
tar -T /tmp
/wxgtk.txt
91 echo Re
-tarring wxGTK
in a subdirectory...
93 mkdir wxWindows
-${WXVER}
95 $TAR xf ..
/wxGTK
-${WXVER}.
tar
97 rm -f wxGTK
-${WXVER}.
tar
98 $TAR cf
$2/wxGTK
-${WXVER}.
tar wxWindows
-${WXVER}/*
99 rm -f -r wxWindows
-${WXVER}
100 gzip $2/wxGTK
-${WXVER}.
tar
104 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
105 expandlines
/tmp
/wxmotif_in.txt
/tmp
/wxmotif.txt
106 $TAR cf
$2/wxMotif
-${WXVER}.
tar -T /tmp
/wxmotif.txt
108 echo Re
-tarring wxMotif
in a subdirectory...
110 mkdir wxWindows
-${WXVER}
111 cd wxWindows
-${WXVER}
112 $TAR xf ..
/wxMotif
-${WXVER}.
tar
114 rm -f wxMotif
-${WXVER}.
tar
115 $TAR cf
$2/wxMotif
-${WXVER}.
tar wxWindows
-${WXVER}/*
116 rm -f -r wxWindows
-${WXVER}
117 gzip $2/wxMotif
-${WXVER}.
tar
119 ### wxX11: combined wxMotif and wxX11 distributions
121 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
122 expandlines
/tmp
/wxx11_in.txt
/tmp
/wxx11.txt
123 $TAR cf
$2/wxX11
-${WXVER}.
tar -T /tmp
/wxx11.txt
125 echo Re
-tarring wxX11
in a subdirectory...
127 mkdir wxWindows
-${WXVER}
128 cd wxWindows
-${WXVER}
129 $TAR xf ..
/wxX11
-${WXVER}.
tar
131 rm -f wxX11
-${WXVER}.
tar
132 $TAR cf
$2/wxX11
-${WXVER}.
tar wxWindows
-${WXVER}/*
133 rm -f -r wxWindows
-${WXVER}
134 gzip $2/wxX11
-${WXVER}.
tar
138 # 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
139 # expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
140 # $TAR cf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
141 # gzip $2/wxMSW-${WXVER}.tar
145 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
146 expandlines
/tmp
/wxmac_in.txt
/tmp
/wxmac.txt
147 $TAR cf
$2/wxMac
-${WXVER}.
tar -T /tmp
/wxmac.txt
149 echo Re
-tarring wxMac
in a subdirectory...
151 mkdir wxWindows
-${WXVER}
152 cd wxWindows
-${WXVER}
153 $TAR xf ..
/wxMac
-${WXVER}.
tar
155 rm -f wxMac
-${WXVER}.
tar
156 $TAR cf
$2/wxMac
-${WXVER}.
tar wxWindows
-${WXVER}/*
157 rm -f -r wxWindows
-${WXVER}
158 gzip $2/wxMac
-${WXVER}.
tar
162 cat $1/distrib
/msw
/docsrc.rsp
> /tmp
/docsrc_in.txt
163 expandlines
/tmp
/docsrc_in.txt
/tmp
/docsrc.txt
164 $TAR cf
$2/wxWindows
-${WXVER}-doc.
tar -T /tmp
/docsrc.txt
166 echo Re
-tarring docs
in a subdirectory...
168 mkdir wxWindows
-${WXVER}
169 cd wxWindows
-${WXVER}
170 $TAR xf ..
/wxWindows
-${WXVER}-doc.
tar
172 rm -f wxWindows
-${WXVER}-doc.
tar
173 $TAR cf
$2/wxWindows
-${WXVER}-doc.
tar wxWindows
-${WXVER}/*
174 rm -f -r wxWindows
-${WXVER}
175 gzip $2/wxWindows
-${WXVER}-doc.
tar
179 cat $1/distrib
/msw
/wx_html.rsp
> /tmp
/html_in.txt
180 expandlines
/tmp
/html_in.txt
/tmp
/html.txt
181 $TAR cf
$2/wxWindows
-${WXVER}-html.
tar -T /tmp
/html.txt
183 echo Re
-tarring HTML
in a subdirectory...
185 mkdir wxWindows
-${WXVER}
186 cd wxWindows
-${WXVER}
187 $TAR xf ..
/wxWindows
-${WXVER}-html.
tar
189 rm -f wxWindows
-${WXVER}-html.
tar
190 $TAR cf
$2/wxWindows
-${WXVER}-html.
tar wxWindows
-${WXVER}/*
191 rm -f -r wxWindows
-${WXVER}
192 gzip $2/wxWindows
-${WXVER}-html.
tar
196 cat $1/distrib
/msw
/wx_pdf.rsp
> /tmp
/pdf_in.txt
197 expandlines
/tmp
/pdf_in.txt
/tmp
/pdf.txt
198 $TAR cf
$2/wxWindows
-${WXVER}-pdf.
tar -T /tmp
/pdf.txt
200 echo Re
-tarring PDF
in a subdirectory...
202 mkdir wxWindows
-${WXVER}
203 cd wxWindows
-${WXVER}
204 $TAR xf ..
/wxWindows
-${WXVER}-pdf.
tar
206 rm -f wxWindows
-${WXVER}-pdf.
tar
207 $TAR cf
$2/wxWindows
-${WXVER}-pdf.
tar wxWindows
-${WXVER}/*
208 rm -f -r wxWindows
-${WXVER}
209 gzip $2/wxWindows
-${WXVER}-pdf.
tar
213 cat $1/distrib
/msw
/tex2rtf.rsp
> /tmp
/tex2rtf_in.txt
214 expandlines
/tmp
/tex2rtf_in.txt
/tmp
/tex2rtf.txt
215 $TAR cf
$2/wxWindows
-${WXVER}-tex2rtf.
tar -T /tmp
/tex2rtf.txt
217 echo Re
-tarring Tex2RTF
in a subdirectory...
219 mkdir wxWindows
-${WXVER}
220 cd wxWindows
-${WXVER}
221 $TAR xf ..
/wxWindows
-${WXVER}-tex2rtf.
tar
223 rm -f wxWindows
-${WXVER}-tex2rtf.
tar
224 $TAR cf
$2/wxWindows
-${WXVER}-tex2rtf.
tar wxWindows
-${WXVER}/*
225 rm -f -r wxWindows
-${WXVER}
226 gzip $2/wxWindows
-${WXVER}-tex2rtf.
tar
230 cat $1/distrib
/msw
/ogl.rsp
> /tmp
/ogl_in.txt
231 expandlines
/tmp
/ogl_in.txt
/tmp
/ogl.txt
232 $TAR cf
$2/wxWindows
-${WXVER}-ogl.
tar -T /tmp
/ogl.txt
234 echo Re
-tarring OGL
in a subdirectory...
236 mkdir wxWindows
-${WXVER}
237 cd wxWindows
-${WXVER}
238 $TAR xf ..
/wxWindows
-${WXVER}-ogl.
tar
240 rm -f wxWindows
-${WXVER}-ogl.
tar
241 $TAR cf
$2/wxWindows
-${WXVER}-ogl.
tar wxWindows
-${WXVER}/*
242 rm -f -r wxWindows
-${WXVER}
243 gzip $2/wxWindows
-${WXVER}-ogl.
tar
247 cat $1/distrib
/msw
/jpeg.rsp
> /tmp
/jpeg_in.txt
248 expandlines
/tmp
/jpeg_in.txt
/tmp
/jpeg.txt
249 $TAR cf
$2/wxWindows
-${WXVER}-jpeg.
tar -T /tmp
/jpeg.txt
251 echo Re
-tarring docs
in a subdirectory...
253 mkdir wxWindows
-${WXVER}
254 cd wxWindows
-${WXVER}
255 $TAR xf ..
/wxWindows
-${WXVER}-jpeg.
tar
257 rm -f wxWindows
-${WXVER}-jpeg.
tar
258 $TAR cf
$2/wxWindows
-${WXVER}-jpeg.
tar wxWindows
-${WXVER}/*
259 rm -f -r wxWindows
-${WXVER}
260 gzip $2/wxWindows
-${WXVER}-jpeg.
tar
264 cat $1/distrib
/msw
/tiff.rsp
> /tmp
/tiff_in.txt
265 expandlines
/tmp
/tiff_in.txt
/tmp
/tiff.txt
266 $TAR cf
$2/wxWindows
-${WXVER}-tiff.
tar -T /tmp
/tiff.txt
268 echo Re
-tarring docs
in a subdirectory...
270 mkdir wxWindows
-${WXVER}
271 cd wxWindows
-${WXVER}
272 $TAR xf ..
/wxWindows
-${WXVER}-tiff.
tar
274 rm -f wxWindows
-${WXVER}-tiff.
tar
275 $TAR cf
$2/wxWindows
-${WXVER}-tiff.
tar wxWindows
-${WXVER}/*
276 rm -f -r wxWindows
-${WXVER}
277 gzip $2/wxWindows
-${WXVER}-tiff.
tar
279 # Copy readme and other files
281 cp $1/docs
/readme.txt
$2/readme
-${WXVER}.txt
282 cp $1/docs
/changes.txt
$2/changes
-${WXVER}.txt
283 cp $1/docs
/mgl
/readme.txt
$2/readme
-mgl-${WXVER}.txt
284 cp $1/docs
/mgl
/install.txt
$2/install-mgl-${WXVER}.txt
285 cp $1/docs
/x
11/readme.txt
$2/readme
-x11-${WXVER}.txt
286 cp $1/docs
/x
11/readme
-nanox.txt
$2/readme
-nanox-${WXVER}.txt
287 cp $1/docs
/x
11/install.txt
$2/install-x11-${WXVER}.txt
288 cp $1/docs
/motif
/readme.txt
$2/readme
-motif-${WXVER}.txt
289 cp $1/docs
/motif
/install.txt
$2/install-motif-${WXVER}.txt
290 cp $1/docs
/msw
/readme.txt
$2/readme
-msw-${WXVER}.txt
291 cp $1/docs
/msw
/install.txt
$2/install-msw-${WXVER}.txt
292 cp $1/docs
/gtk
/readme.txt
$2/readme
-gtk-${WXVER}.txt
293 cp $1/docs
/gtk
/install.txt
$2/install-gtk-${WXVER}.txt
294 cp $1/docs
/mac
/readme.txt
$2/readme
-mac-${WXVER}.txt
295 cp $1/docs
/mac
/install.txt
$2/install-mac-${WXVER}.txt
296 cp $1/docs
/os
2/install.txt
$2/install-os2-${WXVER}.txt