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
47 #
Copy FAQ from wxWebSite CVS
48 if not direxist
%webfiles% echo Error
- %webfiles% does
not exist
49 if not direxist
%webfiles% goto end
50 echo Copying FAQ and other
files from
%webfiles
51 copy %webfiles%\site
\faq
*.htm
%src\docs\html
52 copy %webfiles%\site\platform.htm
%src\docs\html
57 Rem Zip up the complete wxMSW-xxx.zip file
58 Rem NO, do it by unarchiving component files, deleting/copying some files, then
60 Rem zip32 -@ %dest\wxMSW-%version%.zip < %src\distrib\msw\generic.rsp
61 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\msw.rsp
62 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\wx_chm.rsp
63 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\jpeg.rsp
64 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\tiff.rsp
66 Rem Zip up the complete wxOS2-xxx.zip file
67 zip32
-@
%dest\wxOS2
-%version%.zip
< %src\distrib\msw\generic.rsp
68 zip32
-@
-u
%dest%\wxOS2
-%version%.zip
< %src\distrib\msw\os2.rsp
69 zip32
-@
-u
%dest%\wxOS2
-%version%.zip
< %src\distrib\msw\wx_chm.rsp
70 zip32
-@
-u
%dest%\wxOS2
-%version%.zip
< %src\distrib\msw\jpeg.rsp
71 zip32
-@
-u
%dest%\wxOS2
-%version%.zip
< %src\distrib\msw
\tiff.rsp
72 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw
\tiff.rsp
73 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\jpeg.rsp
74 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\utils.rsp
75 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw
\tex
2rtf.rsp
76 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\dialoged.rsp
77 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\ogl.rsp
78 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\xml.rsp
79 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\contrib.rsp
80 zip32
-u
-@
%dest%\wxOS2
-%version%.zip
< %src%\distrib\msw\makefile.rsp
82 echo Zipping wxMac distribution
83 zip32
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\generic.rsp
84 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\mac.rsp
85 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\cw.rsp
86 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw
\tiff.rsp
87 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\jpeg.rsp
88 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\utils.rsp
89 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw
\tex
2rtf.rsp
90 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\dialoged.rsp
91 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\ogl.rsp
92 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\xml.rsp
93 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\stc.rsp
94 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\contrib.rsp
95 zip32
-u
-@
%dest%\wxMac
-%version%.zip
< %src%\distrib\msw\makefile.rsp
97 Rem Below is the old-style separated-out format. This is retained only
98 Rem for local use, and for creating wxMSW-xxx.zip.
99 echo Zipping individual components
100 zip32
-@
%dest\wxWindows
-%version%-gen.zip
< %src\distrib\msw\generic.rsp
101 zip32
-@
-u
%dest\wxWindows
-%version%-gen.zip
< %src\distrib\msw\makefile.rsp
102 zip32
-@
%dest\wxWindows
-%version%-msw.zip
< %src\distrib\msw\msw.rsp
103 zip32
-@
-u
%dest\wxWindows
-%version%-msw.zip
< %src\distrib\msw\makefile.rsp
104 zip32
-@
%dest\wxWindows
-%version%-gtk.zip
< %src\distrib\msw\gtk.rsp
105 zip32
-@
-u
%dest\wxWindows
-%version%-gtk.zip
< %src\distrib\msw\makefile.rsp
106 Rem zip32 -@ %dest\wxWindows-%version%-stubs.zip < %src\distrib\msw\stubs.rsp
107 zip32
-@
%dest\wxWindows
-%version%-mot.zip
< %src\distrib\msw\motif.rsp
108 zip32
-@
-u
%dest\wxWindows
-%version%-mot.zip
< %src\distrib\msw\makefile.rsp
109 Rem (Obsolete) zip32 -@ %dest\wxWindows-%version%-user.zip < %src\distrib\msw\user.rsp
111 zip32
-@
%dest\wxWindows
-%version%-DocSource.zip
< %src\distrib\msw\docsrc.rsp
112 zip32
-@
%dest\wxWindows
-%version%-WinHelp.zip
< %src\distrib\msw\wx_hlp.rsp
113 zip32
-@
%dest\wxWindows
-%version%-HTML.zip
< %src\distrib\msw\wx_html.rsp
114 zip32
-@
%dest\wxWindows
-%version%-PDF.zip
< %src\distrib\msw\wx_pdf.rsp
115 zip32
-@
%dest\wxWindows
-%version%-Word.zip
< %src\distrib\msw\wx_word.rsp
116 zip32
-@
%dest\wxWindows
-%version%-HTB.zip
< %src\distrib\msw\wx_htb.rsp
117 zip32
-@
%dest\wxWindows
-%version%-HTMLHelp.zip
< %src\distrib\msw\wx_chm.rsp
119 Rem PDF/HTML docs that should go into the Windows setup because
120 Rem there are no WinHelp equivalents
121 zip32
-@
%dest\extradoc
-%version%.zip
< %src\distrib\msw\extradoc.rsp
123 Rem zip up Univ-specific files
124 zip32
-@
%dest\wxWindows
-%version%-univ.zip
< %src\distrib\msw\univ.rsp
126 rem VC++ project files
127 zip32
-@
%dest\wxWindows
-%version%-vc.zip
< %src\distrib\msw
\vc.rsp
129 rem BC++ project files
130 zip32
-@
%dest\wxWindows
-%version%-bc.zip
< %src\distrib\msw
\bc.rsp
132 rem CodeWarrior project files
133 zip32
-@
%dest\wxWindows
-%version%-cw.zip
< %src\distrib\msw\cw.rsp
136 zip32
-@
%dest\ogl3
-%version%.zip
< %src\distrib\msw\ogl.rsp
139 zip32
-@
%dest\mmedia
-%version%.zip
< %src\distrib\msw\mmedia.rsp
141 rem STC (Scintilla widget)
142 zip32
-@
%dest\stc
-%version%.zip
< %src\distrib\msw\stc.rsp
144 rem GLCanvas: obsolete, now in main library
145 rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
148 zip32
-@
%dest
\tex
2rtf
2-%version%.zip
< %src\distrib\msw
\tex
2rtf.rsp
151 zip32
-@
%dest\jpeg
-%version%.zip
< %src\distrib\msw\jpeg.rsp
154 zip32
-@
%dest
\tiff
-%version%.zip
< %src\distrib\msw
\tiff.rsp
156 zip32
-@
%dest\wxxrc
-%version%.zip
< %src\distrib\msw\xml.rsp
158 zip32
-@
%dest\contrib
-%version%.zip
< %src\distrib\msw\contrib.rsp
160 rem Dialog Editor source and binary
161 erase %dest\dialoged
-source.zip
162 zip32
-@
%dest\dialoged
-source.zip
< %src\distrib\msw\dialoged.rsp
163 zip32
-j
%dest\dialoged
-%version%.zip
%dest\dialoged
-source.zip
%src
\bin\dialoged.exe
%src\docs\winhelp\dialoged.hlp
%src\docs\winhelp\dialoged.cnt
164 erase %dest\dialoged
-source.zip
166 rem Misc. utils not in the main distribution
167 zip32
-@
%dest\utils
-%version%.zip
< %src\distrib\msw\utils.rsp
168 zip32
-@
-u
%dest\utils
-%version%.zip
< %src\distrib\msw\utilmake.rsp
170 copy %src\docs\changes.txt
%dest\changes
-%version%.txt
171 copy %src\docs\msw\install.txt
%dest\install
-msw
-%version%.txt
172 copy %src\docs\mac\install.txt
%dest\install
-mac
-%version%.txt
173 copy %src\docs\motif\install.txt
%dest\install
-motif
-%version%.txt
174 copy %src\docs\gtk\install.txt
%dest\install
-gtk
-%version%.txt
175 copy %src\docs
\readme.txt
%dest
\readme
-%version%.txt
176 copy %src\docs\motif
\readme.txt
%dest
\readme
-motif
-%version%.txt
177 copy %src\docs\gtk
\readme.txt
%dest
\readme
-gtk
-%version%.txt
178 copy %src\docs\msw
\readme.txt
%dest
\readme
-msw
-%version%.txt
179 copy %src\docs\mac
\readme.txt
%dest
\readme
-mac
-%version%.txt
180 copy %src\docs\os2\install.txt
%dest\install
-os2
-%version%.txt
181 copy %src\docs
\readme_vms.txt
%dest
\readme
-vms
-%version%.txt
182 copy %src\docs\motif\makewxmotif
%dest\makewxmotif
-%version%
183 copy %src\docs\gtk\makewxgtk
%dest\makewxgtk
-%version%
185 Rem Skip Inno Setup if inno is 0.
186 if "%inno" == "0" goto end
190 Rem Make dialoged-win32.zip and tex2rtf-win32.zip
194 zip32
%dest\dialoged
-win32
-%version%.zip dialoged.
*
195 zip32
%dest
\tex
2rtf
-win32
-%version%.zip tex2rtf.
*
199 rem Unzip the Windows files into 'wx'
202 Rem After this change of directory, we're in the
203 Rem temporary 'wx' directory and not acting on
204 Rem the source wxWindows directory.
206 unzip32
-o ..\wxWindows
-%version%-msw.zip
207 unzip32
-o ..\wxWindows
-%version%-gen.zip
208 unzip32
-o ..\wxWindows
-%version%-univ.zip
209 unzip32
-o ..\wxWindows
-%version%-vc.zip
210 unzip32
-o ..\wxWindows
-%version%-bc.zip
211 unzip32
-o ..\wxWindows
-%version%-HTMLHelp.zip
212 unzip32
-o ..\extradoc
-%version%.zip
213 Rem Need Word file, for Remstar DB classes
214 unzip32
-o ..\wxWindows
-%version%-Word.zip
215 unzip32
-o ..\ogl3
-%version%.zip
216 unzip32
-o ..\mmedia
-%version%.zip
217 unzip32
-o ..\stc
-%version%.zip
218 unzip32
-o ..\jpeg
-%version%.zip
219 unzip32
-o ..
\tiff
-%version%.zip
220 unzip32
-o ..\wxxrc
-%version%.zip
221 unzip32
-o ..\contrib
-%version%.zip
222 unzip32
-o ..
\tex
2rtf
2-%version%.zip
224 rem Now delete a few files that are unnecessary
226 erase /Y BuildCVS.txt
*.in
*.spec
*.guess
*.sub mkinstalldirs modules install
-sh
*.sh descrip.mms
227 erase /Y configure samples\configure samples\
*.in demos\configure demos\
*.in contrib\configure contrib\
*.in
228 erase /Y setup.h.in setup.h_vms
229 erase /SY Makefile.in
230 erase /Y docs\html\wxbook.htm docs\html
\roadmap.htm
231 Rem erase /Y contrib\docs\winhelp\mmedia.*
232 Rem erase /Y contrib\docs\winhelp\stc.*
233 Rem erase /Y contrib\docs\htmlhelp\mmedia.*
234 Rem erase /Y contrib\docs\htmlhelp\stc.*
235 Rem erase /Y contrib\docs\pdf\*.*
236 erase /sxzy contrib\docs\latex\ogl
237 erase /Y src\mingegcs.bat
240 rem Now copy some binary files to 'bin'
241 if not isdir bin
mkdir bin
242 copy %src
\bin\dialoged.exe bin
243 copy %src
\bin
\tex
2rtf.exe bin
244 copy %src
\bin\dbgview.
* bin
245 copy %src
\bin\widgets.exe bin
246 copy %src
\bin\widgets.exe.manifest bin
247 copy %src
\bin\life.exe bin
248 copy %src
\bin\life.exe.manifest bin
249 copy %src\demos\life
\breeder.lif bin
250 copy %src\docs\htmlhelp\dialoged.chm bin
251 copy %src\docs\htmlhelp
\tex
2rtf.chm bin
253 Rem Make wxMSW-xxx.zip
254 zip32
-r ..\wxMSW
-%version%.zip
*
256 rem Time to regenerate the Inno Setup script, wxwin2.iss.
257 rem NB: if you've changed wxwin2.iss using ScriptMaker, call splitinno.exe
258 rem from within distrib\msw, to split off innotop.txt and innobott.txt.
259 rem (NOT YET IMPLEMENTED)
260 echo Calling
'makeinno' to generate wxwin2.iss...
261 call %WXWIN\distrib\msw\makeinno.bat
263 erase /Y
%dest\setup.
*
265 rem Now invoke Inno Setup on the new wxwin2.iss
266 set innocmd
="C:\Program Files\Inno Setup 2\compil32.exe" /cc
%WXWIN\distrib\msw\wxwin2.iss
267 echo Invoking
%innocmd...
268 start "Inno Setup" /w
%innocmd%
269 pause Press any key to continue with the wxWindows distribution...
270 Rem ren %WXWIN\deliver2\setup.EXE %WXWIN\deliver2\wxMSW-%version%-setup.exe
275 rem Put all the setup files into a single zip archive.
276 zip32 wxMSW
-%version%-setup.zip readme
-%version%.txt setup.
*
278 echo wxWindows archived.
283 echo DOS wxWindows distribution. Zips up all GTK
/Motif
/MSW
/doc
files,
284 echo and optionally makes a deliver2\wx directory and a setup.exe
285 echo if you specify
'inno' (skipping the zipping
if you
use 'innoonly').
287 echo "Usage: zipdist [inno | innoonly]"