2 rem Zip up an external, generic + Windows distribution of wxWindows 2
3 rem using Inno Setup + ScriptMaker
6 set webfiles
=c
:\wx2dev\wxWebSite
9 Rem Set this to the required version
12 if "%src" == "" goto usage
13 if "%dest" == "" goto usage
14 if "%1" == "-help" goto usage
15 if "%1" == "--help" goto usage
16 if "%1" == "/?" goto usage
17 if "%1" == "innoonly" goto dounzip
18 if "%1" == "inno" set inno
=1
19 if "%1" == "tidyup" goto tidyup
20 echo About to archive an external wxWindows distribution
:
23 if "%inno" == "1" echo with Inno Setup creation.
24 echo CTRL
-C
if this is
not correct.
30 erase %dest\contrib
*.zip
31 erase %dest
\tex
2rtf
2*.zip
32 erase %dest\mmedia
*.zip
35 erase %dest\dialoged
*.zip
36 erase %dest\utils
*.zip
37 erase %dest\extradoc
*.zip
39 erase %dest\
*-win32
*.zip
44 if direxist
%dest\wx
erase /sxyz
%dest\wx\
45 if not direxist
%dest
mkdir %dest
46 if direxist
%dest%\wxWindows
-%version% erase /sxyz
%dest%\wxWindows
-%version%
48 Rem Copy FAQ from wxWebSite CVS
49 if not direxist
%webfiles% echo Error
- %webfiles% does
not exist
50 if not direxist
%webfiles% goto end
51 echo Copying FAQ and other
files from
%webfiles
52 copy %webfiles%\site
\faq
*.htm
%src\docs\html
53 copy %webfiles%\site\platform.htm
%src\docs\html
54 copy %webfiles%\site\i18n.htm
%src\docs\html
56 Rem Copy setup0.h files to setup.h
57 copy %src%\include\wx\os2\setup0.h
%src%\include\wx\os2\setup.h
58 copy %src%\include\wx\msw\setup0.h
%src%\include\wx\msw\setup.h
59 copy %src%\include\wx\univ\setup0.h
%src%\include\wx\univ\setup.h
64 Rem Zip up the complete wxOS2-xxx.zip file
65 zip32
-@
%dest\wxOS2
-%version%.zip
< %src\distrib\msw\generic.rsp
66 zip32
-@
-u
%dest%\wxOS2
-%version%.zip
< %src\distrib\msw\os2.rsp
67 zip32
-@
-u
%dest%\wxOS2
-%version%.zip
< %src\distrib\msw\jpeg.rsp
68 zip32
-@
-u
%dest%\wxOS2
-%version%.zip
< %src\distrib\msw
\tiff.rsp
69 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw
\tiff.rsp
70 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\jpeg.rsp
71 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\utils.rsp
72 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw
\tex
2rtf.rsp
73 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\dialoged.rsp
74 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\ogl.rsp
75 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\xml.rsp
76 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\contrib.rsp
77 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\deprecated.rsp
78 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\makefile.rsp
80 Rem Rearchive under wxWindows-%version%
81 if direxist
%dest%\wxWindows
-%version% erase /sxyz
%dest%\wxWindows
-%version%
83 mkdir %dest%\wxWindows
-%version%
84 cd %dest%\wxWindows
-%version%
85 unzip32 ..\wxOS2
-%version%.zip
86 echo Overwriting with OS2
-specific versions of configure
files...
87 unzip32
-o
%src%\distrib\os2\os2
-specific.zip
88 erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\
*.pdf
89 erase /Y src
\tiff\
*.mcp src\jpeg\
*.mcp src\png\
*.mcp src\zlib\
*.mcp
90 erase /SXY docs\html\dialoged docs\html
\tex
2rtf
92 echo Making
files lower case...
94 call %src%\distrib\msw\lower.bat
95 cd ..\..\include\wx\os2
96 call %src%\distrib\msw\lower.bat
100 erase wxOS2
-%version%.zip
101 zip32
-r wxOS2
-%version%.zip wxWindows
-%version%/*
105 echo Zipping wxMac distribution
107 copy %src%\include\wx\mac\setup0.h
%src%\include\wx\setup.h
109 zip32
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\generic.rsp
110 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\mac.rsp
111 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\cw_mac.rsp
112 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw
\tiff.rsp
113 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\jpeg.rsp
114 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\utils.rsp
115 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw
\tex
2rtf.rsp
116 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\dialoged.rsp
117 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\ogl.rsp
118 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\xml.rsp
119 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\stc.rsp
120 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\contrib.rsp
121 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\deprecated.rsp
122 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\makefile.rsp
124 zip32
-@
%dest%\wxWindows
-%version%-CW
-Mac.zip
< %src%\distrib\msw\cw_mac.rsp
126 erase /Y
%src%\include\wx\setup.h
128 if direxist
%dest%\wxWindows
-%version% erase /sxyz
%dest%\wxWindows
-%version%
130 mkdir %dest%\wxWindows
-%version%
131 cd %dest%\wxWindows
-%version%
132 unzip32 ..\wxMac
-%version%.zip
133 erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\
*.pdf
134 erase /SXY docs\html\dialoged docs\html
\tex
2rtf docs\htmlhelp
138 erase wxMac
-%version%.zip
139 zip32
-r wxMac
-%version%.zip wxWindows
-%version%/*
143 Rem Create wxWindows-%version%-win.zip which is used to create wxMSW
144 echo Zipping individual components
145 zip32
-@
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\generic.rsp
146 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\makefile.rsp
147 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\msw.rsp
148 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\ogl.rsp
149 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\mmedia.rsp
150 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\stc.rsp
151 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw
\tex
2rtf.rsp
152 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\jpeg.rsp
153 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw
\tiff.rsp
154 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\xml.rsp
155 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\contrib.rsp
156 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\deprecated.rsp
157 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\dialoged.rsp
158 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\utils.rsp
159 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\utilmake.rsp
160 zip32
-@
-u
%dest\wxWindows
-%version%-win.zip
< %src\distrib\msw\univ.rsp
162 echo Re
-archiving wxWindows
-%version%-win.zip
163 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-win.zip wxWindows
-%version% %dest%
165 echo Removing .mms
files
166 zip32
-d
%dest%\wxWindows
-%version%-win.zip wxWindows
-%version%/src
/gtk
/descrip.mms wxWindows
-%version%/src
/motif
/descrip.mms
168 echo Creating
%dest\wxWindows
-%version%-DocSource.zip
169 zip32
-@
%dest\wxWindows
-%version%-DocSource.zip
< %src\distrib\msw\docsrc.rsp
170 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-DocSource.zip wxWindows
-%version% %dest%
172 echo Creating
%dest\wxWindows
-%version%-WinHelp.zip
173 zip32
-@
%dest\wxWindows
-%version%-WinHelp.zip
< %src\distrib\msw\wx_hlp.rsp
174 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-WinHelp.zip wxWindows
-%version% %dest%
176 echo Creating
%dest\wxWindows
-%version%-HTML.zip
177 zip32
-@
%dest\wxWindows
-%version%-HTML.zip
< %src\distrib\msw\wx_html.rsp
178 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-HTML.zip wxWindows
-%version% %dest%
180 echo Creating
%dest\wxWindows
-%version%-PDF.zip
181 zip32
-@
%dest\wxWindows
-%version%-PDF.zip
< %src\distrib\msw\wx_pdf.rsp
182 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-PDF.zip wxWindows
-%version% %dest%
184 Rem zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp
185 Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Word.zip wxWindows-%version% %dest%
187 echo Creating
%dest\wxWindows
-%version%-HTB.zip
188 zip32
-@
%dest\wxWindows
-%version%-HTB.zip
< %src\distrib\msw\wx_htb.rsp
189 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-HTB.zip wxWindows
-%version% %dest%
191 echo Creating
%dest\wxWindows
-%version%-HTMLHelp.zip
192 zip32
-@
%dest\wxWindows
-%version%-HTMLHelp.zip
< %src\distrib\msw\wx_chm.rsp
193 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-HTMLHelp.zip wxWindows
-%version% %dest%
195 Rem Add Linuxy docs to a separate archive to be transported to Linux for the
196 Rem Linux-based releases
197 echo Creating
%dest\wxWindows
-%version%-LinuxDocs.zip
198 zip32
-@
%dest\wxWindows
-%version%-LinuxDocs.zip
< %src\distrib\msw\wx_html.rsp
199 zip32
-@
-u
%dest\wxWindows
-%version%-LinuxDocs.zip
< %src\distrib\msw\wx_pdf.rsp
200 zip32
-@
-u
%dest\wxWindows
-%version%-LinuxDocs.zip
< %src\distrib\msw\wx_htb.rsp
202 Rem PDF/HTML docs that should go into the Windows setup because
203 Rem there are no WinHelp equivalents
204 echo Creating
%dest\wxWindows
-%version%-ExtraDoc.zip
205 zip32
-@
%dest\wxWindows
-%version%-ExtraDoc.zip
< %src\distrib\msw\extradoc.rsp
206 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-ExtraDoc.zip wxWindows
-%version% %dest%
208 Rem zip up Univ-specific files
209 echo Creating
%dest\wxWindows
-%version%-Univ.zip
210 zip32
-@
%dest\wxWindows
-%version%-Univ.zip
< %src\distrib\msw\univ.rsp
211 call %WXWIN%\distrib\msw
\rearchive wxWindows
-%version%-Univ.zip wxWindows
-%version% %dest%
213 rem VC++ project files
214 echo Creating
%dest\wxWindows
-%version%-VC.zip
215 zip32
-@
%dest\wxWindows
-%version%-VC.zip
< %src\distrib\msw
\vc.rsp
216 Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-VC.zip wxWindows-%version% %dest%
218 rem BC++ project files
219 echo Creating
%dest\wxWindows
-%version%-BC.zip
220 zip32
-@
%dest\wxWindows
-%version%-BC.zip
< %src\distrib\msw
\bc.rsp
221 Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-BC.zip wxWindows-%version% %dest%
223 rem CodeWarrior project files
224 echo Creating
%dest\wxWindows
-%version%-CW.zip
225 zip32
-@
%dest\wxWindows
-%version%-CW.zip
< %src\distrib\msw\cw.rsp
226 Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-CW.zip wxWindows-%version% %dest%
228 rem Dialog Editor source and binary
229 Rem erase %dest\dialoged-source.zip
230 Rem zip32 -@ %dest\dialoged-source.zip < %src\distrib\msw\dialoged.rsp
231 Rem zip32 -j %dest\dialoged-%version%.zip %dest\dialoged-source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt
232 Rem erase %dest\dialoged-source.zip
234 copy %src\docs\changes.txt
%dest\changes
-%version%.txt
235 copy %src\docs\msw\install.txt
%dest\install
-msw
-%version%.txt
236 copy %src\docs\mac\install.txt
%dest\install
-mac
-%version%.txt
237 copy %src\docs\motif\install.txt
%dest\install
-motif
-%version%.txt
238 copy %src\docs\gtk\install.txt
%dest\install
-gtk
-%version%.txt
239 copy %src\docs
\x11\install.txt
%dest\install
-x11
-%version%.txt
240 copy %src\docs
\readme.txt
%dest
\readme
-%version%.txt
241 copy %src\docs\motif
\readme.txt
%dest
\readme
-motif
-%version%.txt
242 copy %src\docs\gtk
\readme.txt
%dest
\readme
-gtk
-%version%.txt
243 copy %src\docs
\x11\readme.txt
%dest
\readme
-x11
-%version%.txt
244 copy %src\docs
\x11\readme
-nanox.txt
%dest
\readme
-nanox
-%version%.txt
245 copy %src\docs\msw
\readme.txt
%dest
\readme
-msw
-%version%.txt
246 copy %src\docs\mac
\readme.txt
%dest
\readme
-mac
-%version%.txt
247 copy %src\docs
\base
\readme.txt
%dest
\readme
-base
-%version%.txt
248 copy %src\docs\os2\install.txt
%dest\install
-os2
-%version%.txt
249 copy %src\docs\univ
\readme.txt
%dest
\readme
-univ
-%version%.txt
250 copy %src\docs
\readme_vms.txt
%dest
\readme
-vms
-%version%.txt
251 Rem copy %src\docs\motif\makewxmotif %dest\makewxmotif-%version%
252 Rem copy %src\docs\gtk\makewxgtk %dest\makewxgtk-%version%
254 Rem Skip Inno Setup if inno is 0.
255 if "%inno" == "0" goto end
259 Rem Make dialoged-win32.zip and tex2rtf-win32.zip
262 Rem zip32 %dest\dialoged-win32-%version%.zip dialoged.*
263 Rem zip32 %dest\tex2rtf-win32-%version%.zip tex2rtf.*
267 rem Put all archives for transit to Linux in a zip file
268 echo Creating
%dest\wxWindows
-%version%-LinuxTransit.zip
269 erase %dest\wxWindows
-%version%-LinuxTransit.zip
270 zip32
%dest\wxWindows
-%version%-LinuxTransit.zip wxWindows
-%version%-LinuxDocs.zip wxWindows
-%version%-VC.zip wxWindows
-%version%-CW
-Mac.zip
272 echo Unzipping the Windows
files into wxWindows
-%version%
274 unzip32
-o wxWindows
-%version%-win.zip
275 unzip32
-o wxWindows
-%version%-VC.zip
-d wxWindows
-%version
276 unzip32
-o wxWindows
-%version%-BC.zip
-d wxWindows
-%version
277 unzip32
-o wxWindows
-%version%-CW.zip
-d wxWindows
-%version
278 unzip32
-o wxWindows
-%version%-HTMLHelp.zip
279 unzip32
-o wxWindows
-%version%-ExtraDoc.zip
280 Rem Need Word file, for Remstar DB classes
282 Rem unzip32 -o wxWindows-%version%-Word.zip
284 Rem After this change of directory, we're in the
285 Rem temporary 'wx' directory and not acting on
286 Rem the source wxWindows directory.
287 cd %dest%\wxWindows
-%version%
289 rem Now delete a few files that are unnecessary
291 erase /Y BuildCVS.txt descrip.mms
293 erase /Y docs\html\wxbook.htm docs\html
\roadmap.htm
294 Rem erase /Y contrib\docs\winhelp\mmedia.*
295 Rem erase /Y contrib\docs\winhelp\stc.*
296 Rem erase /Y contrib\docs\htmlhelp\mmedia.*
297 Rem erase /Y contrib\docs\htmlhelp\stc.*
298 Rem erase /Y contrib\docs\pdf\*.*
299 erase /sxzy contrib\docs\latex\ogl
300 erase /Y src\mingegcs.bat
303 rem Now copy some binary files to 'bin'
304 if not isdir bin
mkdir bin
305 copy %src
\bin\dialoged.exe bin
306 copy %src
\bin\dialoged.hlp bin
307 copy %src
\bin\dialoged.chm bin
308 copy %src
\bin
\tex
2rtf.exe bin
309 copy %src
\bin
\tex
2rtf.hlp bin
310 copy %src
\bin
\tex
2rtf.cnt bin
311 copy %src
\bin\dbgview.
* bin
312 copy %src
\bin\widgets.exe bin
313 copy %src
\bin\widgets.exe.manifest bin
314 copy %src
\bin\life.exe bin
315 copy %src
\bin\life.exe.manifest bin
316 copy %src\demos\life
\breeder.lif bin
317 copy %src\docs\htmlhelp\dialoged.chm bin
318 copy %src\docs\htmlhelp
\tex
2rtf.chm bin
320 if not direxist docs\pdf
mkdir docs\pdf
321 copy %src\docs\pdf\wxTutorial.pdf docs\pdf
323 Rem Make wxMSW-xxx.zip
325 zip32
-r wxMSW
-%version%.zip wxWindows
-%version%/*
326 cd wxWindows
-%version%
328 echo Calling
'makeinno' to generate wxwin2.iss...
329 call %WXWIN\distrib\msw\makeinno.bat
331 erase /Y
%dest\setup.
*
333 rem Now invoke Inno Setup on the new wxwin2.iss
334 set innocmd
="C:\Program Files\Inno Setup 2\compil32.exe" /cc
%WXWIN\distrib\msw\wxwin2.iss
335 echo Invoking
%innocmd...
336 start "Inno Setup" /w
%innocmd%
337 Rem pause Press any key to continue with the wxWindows distribution...
342 rem Put all the setup files into a single zip archive.
343 zip32 wxMSW
-%version%-setup.zip readme
-%version%.txt setup
*.
*
345 erase /Y wxWindows
-%version%-win.zip
346 erase /Y wxWindows
-%version%-ExtraDoc.zip
348 echo wxWindows archived.
353 echo DOS wxWindows distribution. Zips up all MSW
, OS
/2, Mac and doc
files,
354 echo and optionally makes a setup.exe
echo if you specify
'inno'
355 echo (skipping the zipping
if you
use 'innoonly').
357 echo "Usage: zipdistinno [inno | innoonly]"