3 # Zip up an external, generic + Windows distribution of wxWindows 2
4 src
=`cygpath -u $WXWIN`
9 # Set this to the required version
16 # Unzip the Windows files into 'wx'
19 # After this change of directory, we're in the
20 # temporary 'wx' directory and not acting on
21 # the source wxWindows directory.
23 unzip -o ..
/wxWindows
-$version-msw.
zip
24 unzip -o ..
/wxWindows
-$version-gen.
zip
25 unzip -o ..
/wxWindows
-$version-vc.
zip
26 unzip -o ..
/wxWindows
-$version-bc.
zip
27 unzip -o ..
/wxWindows
-$version-HTMLHelp.
zip
28 unzip -o ..
/extradoc.
zip
29 # Need Word file, for Remstar DB classes
30 unzip -o ..
/wxWindows
-$version-Word.
zip
34 unzip -o ..
/tex2rtf2.
zip
36 # Now delete a few files that are unnecessary
38 rm -f BuildCVS.txt
*.
in *.spec
*.guess
*.sub mkinstalldirs modules
install-sh *.sh descrip.mms
39 rm -f configure samples
/configure samples
/*.
in demos
/configure demos
/*.
in contrib
/configure contrib
/*.
in
40 rm -f setup.h.
in setup.h_vms
42 rm -f docs
/html
/wxbook.htm docs
/html
/roadmap.htm
43 rm -f contrib
/docs
/winhelp
/mmedia.
*
44 rm -f contrib
/docs
/winhelp
/stc.
*
45 rm -f contrib
/docs
/htmlhelp
/mmedia.
*
46 rm -f contrib
/docs
/htmlhelp
/stc.
*
47 rm -f contrib
/docs
/pdf
/*.
*
48 rm -f -r contrib
/docs
/latex
/ogl
49 rm -f src
/mingegcs.bat
52 # Now copy some binary files to 'bin'
54 cp $src/bin
/dialoged.exe bin
55 cp $src/bin
/tex2rtf.exe bin
56 cp $src/bin
/dbgview.
* bin
57 cp $src/bin
/life.exe bin
58 cp $src/docs
/winhelp
/dialoged.hlp
$src/docs
/winhelp
/dialoged.cnt bin
59 cp $src/docs
/winhelp
/tex2rtf.hlp
$src/docs
/winhelp
/tex2rtf.cnt bin
62 zip -r ..
/wxMSW
-$version.
zip *
64 # Time to regenerate the WISE install script, wxwin2.wse.
65 # NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
66 # from within distrib/msw, to split off wisetop.txt and wisebott.txt.
67 echo Calling
'makewise' to generate wxwin2.wse...
69 sh
$WXWIN/distrib
/msw
/makewise.sh
73 # Now invoke WISE install on the new wxwin2.wse
75 /c
/progra~
1/wise
/wise32.exe
/C
$WXWIN\\distrib
\\msw
\\wxwin2.wse
76 echo Press
return to
continue with the wxWindows distribution...
81 # tidy up capitalisation of filenames
109 # Put all the setup files into a single zip archive.
110 zip wxMSW
-$version-setup.
zip readme.txt setup.
*
120 for line
in `cat $toexpand` ; do
121 if [ $line != "" ]; then
122 ls $line >> $outputfile
127 # Process command line options.
131 --wiseonly) wiseonly
=1 ;;
133 echo Usage
: $0 "[ options ]" 1>&2
135 echo " --help Display this help message"
136 echo " --wise Build setup.exe"
142 if [ ! -d "$src" ]; then
147 if [ ! -d "$dest" ]; then
148 echo $dest not found.
152 echo Creating distribution
in $dest. Press
return to
continue.
155 if [ "$wiseonly" != "0" ]; then
160 # Remove all existing files
164 rm -f $dest/tex2rtf2.
zip
167 rm -f $dest/dialoged.
zip
168 rm -f $dest/utils.
zip
169 rm -f $dest/extradoc.
zip
170 rm -f $dest/*-win32.
zip
172 if [ ! -d "$dest/wx" ]; then
180 # Below is the old-style separated-out format. This is retained only
181 # for local use, and for creating wxMSW-xxx.zip.
183 # We can't use e.g. this:
184 # ls `cat $src/distrib/msw/makefile.rsp` zip -@ -u $dest/wxWindows-$version-gen.zip
185 # because there's not enough space on the command line, plus we need to ignore the
188 expandlines
$src/distrib
/msw
/generic.rsp temp.txt
189 zip -@
$dest/wxWindows
-$version-gen.
zip < temp.txt
191 expandlines
$src/distrib
/msw
/makefile.rsp temp.txt
192 zip -@
-u $dest/wxWindows
-$version-gen.
zip < temp.txt
194 expandlines
$src/distrib
/msw
/msw.rsp temp.txt
195 zip -@
$dest/wxWindows
-$version-msw.
zip < temp.txt
197 expandlines
$src/distrib
/msw
/makefile.rsp temp.txt
198 zip -@
-u $dest/wxWindows
-$version-msw.
zip < temp.txt
200 expandlines
$src/distrib
/msw
/gtk.rsp temp.txt
201 zip -@
$dest/wxWindows
-$version-gtk.
zip < temp.txt
203 expandlines
$src/distrib
/msw
/makefile.rsp temp.txt
204 zip -@
-u $dest/wxWindows
-$version-gtk.
zip < temp.txt
206 expandlines
$src/distrib
/msw
/stubs.rsp temp.txt
207 zip -@
$dest/wxWindows
-$version-stubs.
zip < temp.txt
209 expandlines
$src/distrib
/msw
/motif.rsp temp.txt
210 zip -@
$dest/wxWindows
-$version-mot.
zip < temp.txt
212 expandlines
$src/distrib
/msw
/makefile.rsp temp.txt
213 zip -@
-u $dest/wxWindows
-$version-mot.
zip < temp.txt
216 expandlines
$src/distrib
/msw
/docsrc.rsp temp.txt
217 zip -@
$dest/wxWindows
-$version-DocSource.
zip < temp.txt
219 expandlines
$src/distrib
/msw
/wx_hlp.rsp temp.txt
220 zip -@
$dest/wxWindows
-$version-WinHelp.
zip < temp.txt
222 expandlines
$src/distrib
/msw
/wx_html.rsp temp.txt
223 zip -@
$dest/wxWindows
-$version-HTML.
zip < temp.txt
225 expandlines
$src/distrib
/msw
/wx_pdf.rsp temp.txt
226 zip -@
$dest/wxWindows
-$version-PDF.
zip < temp.txt
228 expandlines
$src/distrib
/msw
/wx_word.rsp temp.txt
229 zip -@
$dest/wxWindows
-$version-Word.
zip < temp.txt
231 expandlines
$src/distrib
/msw
/wx_htb.rsp temp.txt
232 zip -@
$dest/wxWindows
-$version-HTB.
zip < temp.txt
234 expandlines
$src/distrib
/msw
/wx_chm.rsp temp.txt
235 zip -@
$dest/wxWindows
-$version-HTMLHelp.
zip < temp.txt
237 # PDF/HTML docs that should go into the Windows setup because
238 # there are no WinHelp equivalents
239 expandlines
$src/distrib
/msw
/extradoc.rsp temp.txt
240 zip -@
$dest/extradoc.
zip < temp.txt
243 expandlines
$src/distrib
/msw
/vc.rsp temp.txt
244 zip -@
$dest/wxWindows
-$version-vc.
zip < temp.txt
247 expandlines
$src/distrib
/msw
/bc.rsp temp.txt
248 zip -@
$dest/wxWindows
-$version-bc.
zip < temp.txt
250 # CodeWarrior project files
251 expandlines
$src/distrib
/msw
/cw.rsp temp.txt
252 zip -@
$dest/wxWindows
-$version-cw.
zip < temp.txt
255 expandlines
$src/distrib
/msw
/ogl.rsp temp.txt
256 zip -@
$dest/ogl3.
zip < temp.txt
259 expandlines
$src/distrib
/msw
/mmedia.rsp temp.txt
260 zip -@
$dest/mmedia.
zip < temp.txt
262 # STC (Scintilla widget)
263 expandlines
$src/distrib
/msw
/stc.rsp temp.txt
264 zip -@
$dest/stc.
zip < temp.txt
267 expandlines
$src/distrib
/msw
/tex2rtf.rsp temp.txt
268 zip -@
$dest/tex2rtf2.
zip < temp.txt
271 expandlines
$src/distrib
/msw
/jpeg.rsp temp.txt
272 zip -@
$dest/jpeg.
zip < temp.txt
275 expandlines
$src/distrib
/msw
/tiff.rsp temp.txt
276 zip -@
$dest/tiff.
zip < temp.txt
278 # Dialog Editor source and binary
279 rm -f $dest/dialoged_source.
zip
280 expandlines
$src/distrib
/msw
/dialoged.rsp temp.txt
281 zip -@
$dest/dialoged_source.
zip < temp.txt
282 zip -j $dest/dialoged.
zip $dest/dialoged_source.
zip $src/bin
/dialoged.exe
$src/docs
/winhelp
/dialoged.hlp
$src/docs
/winhelp
/dialoged.cnt
283 rm -f $dest/dialoged_source.
zip
285 # Misc. utils not in the main distribution
286 expandlines
$src/distrib
/msw
/utils.rsp temp.txt
287 zip -@
$dest/utils.
zip < temp.txt
288 expandlines
$src/distrib
/msw
/utilmake.rsp temp.txt
289 zip -@
-u $dest/utilmake.
zip < temp.txt
293 # Make dialoged-win32.zip and tex2rtf-win32.zip
297 zip $dest/dialoged
-win32.
zip dialoged.
*
298 zip $dest/tex2rtf
-win32.
zip tex2rtf.
*
300 cp $src/docs
/changes.txt
$dest
301 cp $src/docs
/msw
/install.txt
$dest/install_msw.txt
302 cp $src/docs
/motif
/install.txt
$dest/install_motif.txt
303 cp $src/docs
/gtk
/install.txt
$dest/install_gtk.txt
304 cp $src/docs
/readme.txt
$dest
305 cp $src/docs
/motif
/readme.txt
$dest/readme_motif.txt
306 cp $src/docs
/gtk
/readme.txt
$dest/readme_gtk.txt
307 cp $src/docs
/msw
/readme.txt
$dest/readme_msw.txt
308 cp $src/docs
/readme_vms.txt
$dest
309 cp $src/docs
/motif
/makewxmotif
$dest
310 cp $src/docs
/gtk
/makewxgtk
$dest
312 # Skip WISE setup if wise is 0.
313 if [ "$wise" = "1" ]; then
317 echo wxWindows archived.