3 # Zip up an external, generic + Windows distribution of wxWindows 2
4 SRC
=`cygpath -u $WXWIN`
8 # If your zip accepts Cygwin-style paths, then
9 # use cygpath, else substitute echo
13 # Set this to the required version
20 # Unzip the Windows files into 'wx'
23 # After this change of directory, we're in the
24 # temporary 'wx' directory and not acting on
25 # the source wxWindows directory.
27 unzip -o `$CYGPATHPROG -w ../wxWindows-$VERSION-msw.zip`
28 unzip -o `$CYGPATHPROG -w ../wxWindows-$VERSION-gen.zip`
29 unzip -o `$CYGPATHPROG -w ../wxWindows-$VERSION-vc.zip`
30 unzip -o `$CYGPATHPROG -w ../wxWindows-$VERSION-bc.zip`
31 unzip -o `$CYGPATHPROG -w ../wxWindows-$VERSION-HTMLHelp.zip`
32 unzip -o `$CYGPATHPROG -w ../extradoc.zip`
33 # Need Word file, for Remstar DB classes
34 unzip -o `$CYGPATHPROG -w ../wxWindows-$VERSION-Word.zip`
35 unzip -o `$CYGPATHPROG -w ../ogl3.zip`
36 unzip -o `$CYGPATHPROG -w ../jpeg.zip`
37 unzip -o `$CYGPATHPROG -w ../tiff.zip`
38 unzip -o `$CYGPATHPROG -w ../tex2rtf2.zip`
40 # Now delete a few files that are unnecessary
42 rm -f BuildCVS.txt
*.
in *.spec
*.guess
*.sub mkinstalldirs modules
install-sh *.sh descrip.mms
43 rm -f configure samples
/configure samples
/*.
in demos
/configure demos
/*.
in contrib
/configure contrib
/*.
in
44 rm -f setup.h.
in setup.h_vms
46 rm -f docs
/html
/wxbook.htm docs
/html
/roadmap.htm
47 rm -f contrib
/docs
/winhelp
/mmedia.
*
48 rm -f contrib
/docs
/winhelp
/stc.
*
49 rm -f contrib
/docs
/htmlhelp
/mmedia.
*
50 rm -f contrib
/docs
/htmlhelp
/stc.
*
51 rm -f contrib
/docs
/pdf
/*.
*
52 rm -f -r contrib
/docs
/latex
/ogl
53 rm -f SRC
/mingegcs.bat
56 # Now copy some binary files to 'bin'
58 cp $SRC/bin
/dialoged.exe bin
59 cp $SRC/bin
/tex2rtf.exe bin
60 cp $SRC/bin
/dbgview.
* bin
61 cp $SRC/bin
/life.exe bin
62 cp $SRC/docs
/winhelp
/dialoged.hlp
$SRC/docs
/winhelp
/dialoged.cnt bin
63 cp $SRC/docs
/winhelp
/tex2rtf.hlp
$SRC/docs
/winhelp
/tex2rtf.cnt bin
66 zip -r `$CYGPATHPROG -w ../wxMSW-$VERSION.zip` *
68 # Time to regenerate the WISE install script, wxwin2.wse.
69 # NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
70 # from within distrib/msw, to split off wisetop.txt and wisebott.txt.
71 echo Calling
'makewise' to generate wxwin2.wse...
73 sh
$WXWIN/distrib
/msw
/makewise.sh
77 # Now invoke WISE install on the new wxwin2.wse
79 /c
/progra~
1/wise
/wise32.exe
/C
$WXWIN\\distrib
\\msw
\\wxwin2.wse
80 echo Press
return to
continue with the wxWindows distribution...
85 # tidy up capitalisation of filenames
113 # Put all the setup files into a single zip archive.
114 zip wxMSW
-$VERSION-setup.
zip readme.txt setup.
*
124 for line
in `cat $toexpand` ; do
125 if [ $line != "" ]; then
126 ls $line >> $outputfile
131 # Process command line options.
135 --wiseonly) WISEONLY
=1 ;;
137 echo Usage
: $0 "[ options ]" 1>&2
139 echo " --help Display this help message"
140 echo " --wise Build setup.exe"
146 if [ ! -d "$SRC" ]; then
151 if [ ! -d "$DEST" ]; then
152 echo $DEST not found.
156 echo Creating distribution
in $DEST. Press
return to
continue.
159 if [ "$WISEONLY" != "0" ]; then
164 # Remove all existing files
168 rm -f $DEST/tex2rtf2.
zip
171 rm -f $DEST/dialoged.
zip
172 rm -f $DEST/utils.
zip
173 rm -f $DEST/extradoc.
zip
174 rm -f $DEST/*-win32.
zip
176 if [ ! -d "$DEST/wx" ]; then
184 # Below is the old-style separated-out format. This is retained only
185 # for local use, and for creating wxMSW-xxx.zip.
187 # We can't use e.g. this:
188 # ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWindows-$VERSION-gen.zip
189 # because there's not enough space on the command line, plus we need to ignore the
192 expandlines
$SRC/distrib
/msw
/generic.rsp temp.txt
193 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-gen.zip` < temp.txt
195 expandlines
$SRC/distrib
/msw
/makefile.rsp temp.txt
196 zip -@
-u `$CYGPATHPROG -w $DEST/wxWindows-$VERSION-gen.zip` < temp.txt
198 expandlines
$SRC/distrib
/msw
/msw.rsp temp.txt
199 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-msw.zip` < temp.txt
201 expandlines
$SRC/distrib
/msw
/makefile.rsp temp.txt
202 zip -@
-u `$CYGPATHPROG -w $DEST/wxWindows-$VERSION-msw.zip` < temp.txt
204 expandlines
$SRC/distrib
/msw
/gtk.rsp temp.txt
205 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-gtk.zip` < temp.txt
207 expandlines
$SRC/distrib
/msw
/makefile.rsp temp.txt
208 zip -@
-u `$CYGPATHPROG -w $DEST/wxWindows-$VERSION-gtk.zip` < temp.txt
210 expandlines
$SRC/distrib
/msw
/stubs.rsp temp.txt
211 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-stubs.zip` < temp.txt
213 expandlines
$SRC/distrib
/msw
/motif.rsp temp.txt
214 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-mot.zip` < temp.txt
216 expandlines
$SRC/distrib
/msw
/makefile.rsp temp.txt
217 zip -@
-u `$CYGPATHPROG -w $DEST/wxWindows-$VERSION-mot.zip` < temp.txt
220 expandlines
$SRC/distrib
/msw
/docsrc.rsp temp.txt
221 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-DocSource.zip` < temp.txt
223 expandlines
$SRC/distrib
/msw
/wx_hlp.rsp temp.txt
224 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-WinHelp.zip` < temp.txt
226 expandlines
$SRC/distrib
/msw
/wx_html.rsp temp.txt
227 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-HTML.zip` < temp.txt
229 expandlines
$SRC/distrib
/msw
/wx_pdf.rsp temp.txt
230 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-PDF.zip` < temp.txt
232 expandlines
$SRC/distrib
/msw
/wx_word.rsp temp.txt
233 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-Word.zip` < temp.txt
235 expandlines
$SRC/distrib
/msw
/wx_htb.rsp temp.txt
236 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-HTB.zip` < temp.txt
238 expandlines
$SRC/distrib
/msw
/wx_chm.rsp temp.txt
239 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-HTMLHelp.zip` < temp.txt
241 # PDF/HTML docs that should go into the Windows setup because
242 # there are no WinHelp equivalents
243 expandlines
$SRC/distrib
/msw
/extradoc.rsp temp.txt
244 zip -@
`$CYGPATHPROG -w $DEST/extradoc.zip` < temp.txt
247 expandlines
$SRC/distrib
/msw
/vc.rsp temp.txt
248 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-vc.zip` < temp.txt
251 expandlines
$SRC/distrib
/msw
/bc.rsp temp.txt
252 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-bc.zip` < temp.txt
254 # CodeWarrior project files
255 expandlines
$SRC/distrib
/msw
/cw.rsp temp.txt
256 zip -@
`$CYGPATHPROG -w $DEST/wxWindows-$VERSION-cw.zip` < temp.txt
259 expandlines
$SRC/distrib
/msw
/ogl.rsp temp.txt
260 zip -@
`$CYGPATHPROG -w $DEST/ogl3.zip` < temp.txt
263 expandlines
$SRC/distrib
/msw
/mmedia.rsp temp.txt
264 zip -@
`$CYGPATHPROG -w $DEST/mmedia.zip` < temp.txt
266 # STC (Scintilla widget)
267 expandlines
$SRC/distrib
/msw
/stc.rsp temp.txt
268 zip -@
`$CYGPATHPROG -w $DEST/stc.zip` < temp.txt
271 expandlines
$SRC/distrib
/msw
/tex2rtf.rsp temp.txt
272 zip -@
`$CYGPATHPROG -w $DEST/tex2rtf2.zip` < temp.txt
275 expandlines
$SRC/distrib
/msw
/jpeg.rsp temp.txt
276 zip -@
`$CYGPATHPROG -w $DEST/jpeg.zip` < temp.txt
279 expandlines
$SRC/distrib
/msw
/tiff.rsp temp.txt
280 zip -@
`$CYGPATHPROG -w $DEST/tiff.zip` < temp.txt
282 # Dialog Editor source and binary
283 rm -f $DEST/dialoged_source.
zip
284 expandlines
$SRC/distrib
/msw
/dialoged.rsp temp.txt
285 zip -@
`$CYGPATHPROG -w $DEST/dialoged_source.zip` < temp.txt
286 zip -j `$CYGPATHPROG -w $DEST/dialoged.zip` $DEST/dialoged_source.
zip $SRC/bin
/dialoged.exe
$SRC/docs
/winhelp
/dialoged.hlp
$SRC/docs
/winhelp
/dialoged.cnt
287 rm -f $DEST/dialoged_source.
zip
289 # Misc. utils not in the main distribution
290 expandlines
$SRC/distrib
/msw
/utils.rsp temp.txt
291 zip -@
`$CYGPATHPROG -w $DEST/utils.zip` < temp.txt
292 expandlines
$SRC/distrib
/msw
/utilmake.rsp temp.txt
293 zip -@
-u `$CYGPATHPROG -w $DEST/utilmake.zip` < temp.txt
297 # Make dialoged-win32.zip and tex2rtf-win32.zip
301 zip `$CYGPATHPROG -w $DEST/dialoged-win32.zip` dialoged.
*
302 zip `$CYGPATHPROG -w $DEST/tex2rtf-win32.zip` tex2rtf.
*
304 cp $SRC/docs
/changes.txt
$DEST
305 cp $SRC/docs
/msw
/install.txt
$DEST/install_msw.txt
306 cp $SRC/docs
/motif
/install.txt
$DEST/install_motif.txt
307 cp $SRC/docs
/gtk
/install.txt
$DEST/install_gtk.txt
308 cp $SRC/docs
/readme.txt
$DEST
309 cp $SRC/docs
/motif
/readme.txt
$DEST/readme_motif.txt
310 cp $SRC/docs
/gtk
/readme.txt
$DEST/readme_gtk.txt
311 cp $SRC/docs
/msw
/readme.txt
$DEST/readme_msw.txt
312 cp $SRC/docs
/readme_vms.txt
$DEST
313 cp $SRC/docs
/motif
/makewxmotif
$DEST
314 cp $SRC/docs
/gtk
/makewxgtk
$DEST
316 # Skip WISE setup if WISE is 0.
317 if [ "$WISE" = "1" ]; then
321 echo wxWindows archived.