2 rem Zip up an external, generic + Windows distribution of wxWindows 2
3 rem using Inno Setup + ScriptMaker
8 Rem Set this to the required version
11 if "%src" == "" goto usage
12 if "%dest" == "" goto usage
13 if "%1" == "-help" goto usage
14 if "%1" == "--help" goto usage
15 if "%1" == "/?" goto usage
16 if "%1" == "innoonly" goto dounzip
17 if "%1" == "inno" set inno
=1
18 if "%1" == "tidyup" goto tidyup
19 echo About to archive an external wxWindows distribution
:
22 if "%inno" == "1" echo with Inno Setup creation.
23 echo CTRL
-C
if this is
not correct.
29 erase %dest\contrib.zip
30 erase %dest
\tex
2rtf
2.zip
33 erase %dest\dialoged.zip
35 erase %dest\extradoc.zip
36 erase %dest\
*-win32.zip
38 if direxist
%dest\wx
erase /sxyz
%dest\wx\
39 if not direxist
%dest
mkdir %dest
44 Rem Zip up the complete wxMSW-xxx.zip file
45 Rem NO, do it by unarchiving component files, deleting/copying some files, then
47 Rem zip32 -@ %dest\wxMSW-%version%.zip < %src\distrib\msw\generic.rsp
48 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\msw.rsp
49 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\wx_chm.rsp
50 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\jpeg.rsp
51 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\tiff.rsp
53 Rem Below is the old-style separated-out format. This is retained only
54 Rem for local use, and for creating wxMSW-xxx.zip.
55 zip32
-@
%dest\wxWindows
-%version%-gen.zip
< %src\distrib\msw\generic.rsp
56 zip32
-@
-u
%dest\wxWindows
-%version%-gen.zip
< %src\distrib\msw\makefile.rsp
57 zip32
-@
%dest\wxWindows
-%version%-msw.zip
< %src\distrib\msw\msw.rsp
58 zip32
-@
-u
%dest\wxWindows
-%version%-msw.zip
< %src\distrib\msw\makefile.rsp
59 zip32
-@
%dest\wxWindows
-%version%-gtk.zip
< %src\distrib\msw\gtk.rsp
60 zip32
-@
-u
%dest\wxWindows
-%version%-gtk.zip
< %src\distrib\msw\makefile.rsp
61 zip32
-@
%dest\wxWindows
-%version%-stubs.zip
< %src\distrib\msw\stubs.rsp
62 zip32
-@
%dest\wxWindows
-%version%-mot.zip
< %src\distrib\msw\motif.rsp
63 zip32
-@
-u
%dest\wxWindows
-%version%-mot.zip
< %src\distrib\msw\makefile.rsp
64 Rem (Obsolete) zip32 -@ %dest\wxWindows-%version%-user.zip < %src\distrib\msw\user.rsp
66 zip32
-@
%dest\wxWindows
-%version%-DocSource.zip
< %src\distrib\msw\docsrc.rsp
67 zip32
-@
%dest\wxWindows
-%version%-WinHelp.zip
< %src\distrib\msw\wx_hlp.rsp
68 zip32
-@
%dest\wxWindows
-%version%-HTML.zip
< %src\distrib\msw\wx_html.rsp
69 zip32
-@
%dest\wxWindows
-%version%-PDF.zip
< %src\distrib\msw\wx_pdf.rsp
70 zip32
-@
%dest\wxWindows
-%version%-Word.zip
< %src\distrib\msw\wx_word.rsp
71 zip32
-@
%dest\wxWindows
-%version%-HTB.zip
< %src\distrib\msw\wx_htb.rsp
72 zip32
-@
%dest\wxWindows
-%version%-HTMLHelp.zip
< %src\distrib\msw\wx_chm.rsp
74 Rem PDF/HTML docs that should go into the Windows setup because
75 Rem there are no WinHelp equivalents
76 zip32
-@
%dest\extradoc.zip
< %src\distrib\msw\extradoc.rsp
78 rem VC++ project files
79 zip32
-@
%dest\wxWindows
-%version%-vc.zip
< %src\distrib\msw
\vc.rsp
81 rem BC++ project files
82 zip32
-@
%dest\wxWindows
-%version%-bc.zip
< %src\distrib\msw
\bc.rsp
84 rem CodeWarrior project files
85 zip32
-@
%dest\wxWindows
-%version%-cw.zip
< %src\distrib\msw\cw.rsp
88 zip32
-@
%dest\ogl3.zip
< %src\distrib\msw\ogl.rsp
91 zip32
-@
%dest\mmedia.zip
< %src\distrib\msw\mmedia.rsp
93 rem STC (Scintilla widget)
94 zip32
-@
%dest\stc.zip
< %src\distrib\msw\stc.rsp
96 rem GLCanvas: obsolete, now in main library
97 rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
100 zip32
-@
%dest
\tex
2rtf
2.zip
< %src\distrib\msw
\tex
2rtf.rsp
103 zip32
-@
%dest\jpeg.zip
< %src\distrib\msw\jpeg.rsp
106 zip32
-@
%dest
\tiff.zip
< %src\distrib\msw
\tiff.rsp
108 zip32
-@
%dest\wxxml.zip
< %src\distrib\msw\xml.rsp
110 zip32
-@
%dest\contrib.zip
< %src\distrib\msw\contrib.rsp
112 rem Dialog Editor source and binary
113 erase %dest\dialoged_source.zip
114 zip32
-@
%dest\dialoged_source.zip
< %src\distrib\msw\dialoged.rsp
115 zip32
-j
%dest\dialoged.zip
%dest\dialoged_source.zip
%src
\bin\dialoged.exe
%src\docs\winhelp\dialoged.hlp
%src\docs\winhelp\dialoged.cnt
116 erase %dest\dialoged_source.zip
118 rem Misc. utils not in the main distribution
119 zip32
-@
%dest\utils.zip
< %src\distrib\msw\utils.rsp
120 zip32
-@
-u
%dest\utils.zip
< %src\distrib\msw\utilmake.rsp
122 copy %src\docs\changes.txt
%dest
123 copy %src\docs\msw\install.txt
%dest\install_msw.txt
124 copy %src\docs\motif\install.txt
%dest\install_motif.txt
125 copy %src\docs\gtk\install.txt
%dest\install_gtk.txt
126 copy %src\docs
\readme.txt
%dest
127 copy %src\docs\motif
\readme.txt
%dest
\readme_motif.txt
128 copy %src\docs\gtk
\readme.txt
%dest
\readme_gtk.txt
129 copy %src\docs\msw
\readme.txt
%dest
\readme_msw.txt
130 copy %src\docs
\readme_vms.txt
%dest
131 copy %src\docs\motif\makewxmotif
%dest
132 copy %src\docs\gtk\makewxgtk
%dest
134 Rem Skip Inno Setup if inno is 0.
135 if "%inno" == "0" goto end
139 Rem Make dialoged-win32.zip and tex2rtf-win32.zip
143 zip32
%dest\dialoged
-win32.zip dialoged.
*
144 zip32
%dest
\tex
2rtf
-win32.zip tex2rtf.
*
148 rem Unzip the Windows files into 'wx'
151 Rem After this change of directory, we're in the
152 Rem temporary 'wx' directory and not acting on
153 Rem the source wxWindows directory.
155 unzip32
-o ..\wxWindows
-%version%-msw.zip
156 unzip32
-o ..\wxWindows
-%version%-gen.zip
157 unzip32
-o ..\wxWindows
-%version%-vc.zip
158 unzip32
-o ..\wxWindows
-%version%-bc.zip
159 unzip32
-o ..\wxWindows
-%version%-HTMLHelp.zip
160 unzip32
-o ..\extradoc.zip
161 Rem Need Word file, for Remstar DB classes
162 unzip32
-o ..\wxWindows
-%version%-Word.zip
163 unzip32
-o ..\ogl3.zip
164 unzip32
-o ..\jpeg.zip
165 unzip32
-o ..
\tiff.zip
166 unzip32
-o ..\xml.zip
167 unzip32
-o ..\contrib.zip
168 unzip32
-o ..
\tex
2rtf
2.zip
170 rem Now delete a few files that are unnecessary
172 erase /Y BuildCVS.txt
*.in
*.spec
*.guess
*.sub mkinstalldirs modules install
-sh
*.sh descrip.mms
173 erase /Y configure samples\configure samples\
*.in demos\configure demos\
*.in contrib\configure contrib\
*.in
174 erase /Y setup.h.in setup.h_vms
175 erase /SY Makefile.in
176 erase /Y docs\html\wxbook.htm docs\html
\roadmap.htm
177 erase /Y contrib\docs\winhelp\mmedia.
*
178 erase /Y contrib\docs\winhelp\stc.
*
179 erase /Y contrib\docs\htmlhelp\mmedia.
*
180 erase /Y contrib\docs\htmlhelp\stc.
*
181 erase /Y contrib\docs\pdf\
*.
*
182 erase /sxzy contrib\docs\latex\ogl
183 erase /Y src\mingegcs.bat
186 rem Now copy some binary files to 'bin'
187 if not isdir bin
mkdir bin
188 copy %src
\bin\dialoged.exe bin
189 copy %src
\bin
\tex
2rtf.exe bin
190 copy %src
\bin\dbgview.
* bin
191 copy %src
\bin\life.exe bin
192 copy %src\demos\life
\breeder.lif bin
193 copy %src\docs\winhelp\dialoged.hlp
%src\docs\winhelp\dialoged.cnt bin
194 copy %src\docs\winhelp
\tex
2rtf.hlp
%src\docs\winhelp
\tex
2rtf.cnt bin
196 Rem Make wxMSW-xxx.zip
197 zip32
-r ..\wxMSW
-%version%.zip
*
199 rem Time to regenerate the Inno Setup script, wxwin2.iss.
200 rem NB: if you've changed wxwin2.iss using ScriptMaker, call splitinno.exe
201 rem from within distrib\msw, to split off innotop.txt and innobott.txt.
202 rem (NOT YET IMPLEMENTED)
203 echo Calling
'makeinno' to generate wxwin2.iss...
204 call %WXWIN\distrib\msw\makeinno.bat
206 erase /Y
%dest\setup.
*
208 rem Now invoke Inno Setup on the new wxwin2.iss
209 set innocmd
="C:\Program Files\Inno Setup 1.3\compil32.exe" /cc
%WXWIN\distrib\msw\wxwin2.iss
210 echo Invoking
%innocmd...
211 start "Inno Setup" /w
%innocmd%
212 pause Press any key to continue with the wxWindows distribution...
213 Rem ren %WXWIN\deliver2\setup.EXE %WXWIN\deliver2\wxMSW-%version%-setup.exe
218 rem Put all the setup files into a single zip archive.
219 zip32 wxMSW
-%version%-setup.zip readme.txt setup.
*
221 echo wxWindows archived.
226 echo DOS wxWindows distribution. Zips up all GTK
/Motif
/MSW
/doc
files,
227 echo and optionally makes a deliver2\wx directory and a setup.exe
228 echo if you specify
'inno' (skipping the zipping
if you
use 'innoonly').
230 echo "Usage: zipdist [inno | innoonly]"