]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/zipdistinno.bat
Further installation fixes
[wxWidgets.git] / distrib / msw / zipdistinno.bat
1 @echo off
2 rem Zip up an external, generic + Windows distribution of wxWindows 2
3 rem using Inno Setup + ScriptMaker
4 set src=%wxwin
5 set dest=%src\deliver
6 set webfiles=c:\wx2dev\wxWebSite
7 set inno=0
8
9 Rem Set this to the required version
10 set version=2.3.3
11
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:
21 echo From %src
22 echo To %dest
23 if "%inno" == "1" echo with Inno Setup creation.
24 echo CTRL-C if this is not correct.
25 pause
26
27 erase %dest\wx*.zip
28 erase %dest\*.htb
29 erase %dest\ogl3*.zip
30 erase %dest\contrib*.zip
31 erase %dest\tex2rtf2*.zip
32 erase %dest\mmedia*.zip
33 erase %dest\jpeg*.zip
34 erase %dest\tiff*.zip
35 erase %dest\dialoged*.zip
36 erase %dest\utils*.zip
37 erase %dest\extradoc*.zip
38 erase %dest\stc*.zip
39 erase %dest\*-win32*.zip
40 erase %dest\setup*.*
41 erase %dest\*.txt
42 erase %dest\make*
43
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%
47
48 # 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
55
56 cd %src
57 echo Zipping...
58
59 Rem Zip up the complete wxOS2-xxx.zip file
60 zip32 -@ %dest\wxOS2-%version%.zip < %src\distrib\msw\generic.rsp
61 zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\os2.rsp
62 zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\wx_chm.rsp
63 zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\jpeg.rsp
64 zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\tiff.rsp
65 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tiff.rsp
66 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\jpeg.rsp
67 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\utils.rsp
68 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
69 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\dialoged.rsp
70 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\ogl.rsp
71 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\xml.rsp
72 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\contrib.rsp
73 zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\makefile.rsp
74
75 Rem Rearchive under wxWindows-%version%
76 call %WXWIN%\distrib\msw\rearchive wxOS2-%version%.zip wxWindows-%version% %dest%
77
78 echo Zipping wxMac distribution
79 zip32 -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\generic.rsp
80 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\mac.rsp
81 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\cw.rsp
82 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tiff.rsp
83 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\jpeg.rsp
84 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\utils.rsp
85 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
86 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\dialoged.rsp
87 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\ogl.rsp
88 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\xml.rsp
89 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\stc.rsp
90 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\contrib.rsp
91 zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\makefile.rsp
92 call %WXWIN%\distrib\msw\rearchive wxMac-%version%.zip wxWindows-%version% %dest%
93
94 Rem Create wxWindows-%version%-win.zip which is used to create wxMSW
95 echo Zipping individual components
96 zip32 -@ %dest\wxWindows-%version%-win.zip < %src\distrib\msw\generic.rsp
97 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\makefile.rsp
98 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\msw.rsp
99 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\ogl.rsp
100 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\mmedia.rsp
101 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\stc.rsp
102 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tex2rtf.rsp
103 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\jpeg.rsp
104 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tiff.rsp
105 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\xml.rsp
106 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\contrib.rsp
107 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\dialoged.rsp
108 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utils.rsp
109 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utilmake.rsp
110 zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\univ.rsp
111
112 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-win.zip wxWindows-%version% %dest%
113
114 zip32 -@ %dest\wxWindows-%version%-DocSource.zip < %src\distrib\msw\docsrc.rsp
115 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-DocSource.zip wxWindows-%version% %dest%
116
117 zip32 -@ %dest\wxWindows-%version%-WinHelp.zip < %src\distrib\msw\wx_hlp.rsp
118 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-WinHelp.zip wxWindows-%version% %dest%
119
120 zip32 -@ %dest\wxWindows-%version%-HTML.zip < %src\distrib\msw\wx_html.rsp
121 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTML.zip wxWindows-%version% %dest%
122
123 zip32 -@ %dest\wxWindows-%version%-PDF.zip < %src\distrib\msw\wx_pdf.rsp
124 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-PDF.zip wxWindows-%version% %dest%
125
126 Rem zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp
127 Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Word.zip wxWindows-%version% %dest%
128
129 zip32 -@ %dest\wxWindows-%version%-HTB.zip < %src\distrib\msw\wx_htb.rsp
130 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTB.zip wxWindows-%version% %dest%
131
132 zip32 -@ %dest\wxWindows-%version%-HTMLHelp.zip < %src\distrib\msw\wx_chm.rsp
133 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTMLHelp.zip wxWindows-%version% %dest%
134
135 Rem PDF/HTML docs that should go into the Windows setup because
136 Rem there are no WinHelp equivalents
137 zip32 -@ %dest\wxWindows-%version%-ExtraDoc.zip < %src\distrib\msw\extradoc.rsp
138 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-ExtraDoc.zip wxWindows-%version% %dest%
139
140 Rem zip up Univ-specific files
141 zip32 -@ %dest\wxWindows-%version%-Univ.zip < %src\distrib\msw\univ.rsp
142 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Univ.zip wxWindows-%version% %dest%
143
144 rem VC++ project files
145 zip32 -@ %dest\wxWindows-%version%-VC.zip < %src\distrib\msw\vc.rsp
146 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-VC.zip wxWindows-%version% %dest%
147
148 rem BC++ project files
149 zip32 -@ %dest\wxWindows-%version%-BC.zip < %src\distrib\msw\bc.rsp
150 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-BC.zip wxWindows-%version% %dest%
151
152 rem CodeWarrior project files
153 zip32 -@ %dest\wxWindows-%version%-CW.zip < %src\distrib\msw\cw.rsp
154 call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-CW.zip wxWindows-%version% %dest%
155
156 rem Dialog Editor source and binary
157 Rem erase %dest\dialoged-source.zip
158 Rem zip32 -@ %dest\dialoged-source.zip < %src\distrib\msw\dialoged.rsp
159 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
160 Rem erase %dest\dialoged-source.zip
161
162 copy %src\docs\changes.txt %dest\changes-%version%.txt
163 copy %src\docs\msw\install.txt %dest\install-msw-%version%.txt
164 copy %src\docs\mac\install.txt %dest\install-mac-%version%.txt
165 copy %src\docs\motif\install.txt %dest\install-motif-%version%.txt
166 copy %src\docs\gtk\install.txt %dest\install-gtk-%version%.txt
167 copy %src\docs\readme.txt %dest\readme-%version%.txt
168 copy %src\docs\motif\readme.txt %dest\readme-motif-%version%.txt
169 copy %src\docs\gtk\readme.txt %dest\readme-gtk-%version%.txt
170 copy %src\docs\msw\readme.txt %dest\readme-msw-%version%.txt
171 copy %src\docs\mac\readme.txt %dest\readme-mac-%version%.txt
172 copy %src\docs\os2\install.txt %dest\install-os2-%version%.txt
173 copy %src\docs\readme_vms.txt %dest\readme-vms-%version%.txt
174 copy %src\docs\motif\makewxmotif %dest\makewxmotif-%version%
175 copy %src\docs\gtk\makewxgtk %dest\makewxgtk-%version%
176
177 Rem Skip Inno Setup if inno is 0.
178 if "%inno" == "0" goto end
179
180 :dounzip
181
182 Rem Make dialoged-win32.zip and tex2rtf-win32.zip
183
184 Rem cd %src\bin
185 Rem zip32 %dest\dialoged-win32-%version%.zip dialoged.*
186 Rem zip32 %dest\tex2rtf-win32-%version%.zip tex2rtf.*
187
188 cd %dest
189
190 rem Unzip the Windows files into 'wxWindows-%version%'
191
192 unzip32 -o wxWindows-%version%-win.zip
193 unzip32 -o wxWindows-%version%-VC.zip
194 unzip32 -o wxWindows-%version%-BC.zip
195 unzip32 -o wxWindows-%version%-HTMLHelp.zip
196 unzip32 -o wxWindows-%version%-ExtraDoc.zip
197 Rem Need Word file, for Remstar DB classes
198 Rem Not any more
199 Rem unzip32 -o wxWindows-%version%-Word.zip
200
201 Rem After this change of directory, we're in the
202 Rem temporary 'wx' directory and not acting on
203 Rem the source wxWindows directory.
204 cd %dest%\wxWindows-%version%
205
206 rem Now delete a few files that are unnecessary
207 attrib -R *
208 erase /Y BuildCVS.txt descrip.mms
209 erase /Y setup.h_vms
210 erase /Y docs\html\wxbook.htm docs\html\roadmap.htm
211 Rem erase /Y contrib\docs\winhelp\mmedia.*
212 Rem erase /Y contrib\docs\winhelp\stc.*
213 Rem erase /Y contrib\docs\htmlhelp\mmedia.*
214 Rem erase /Y contrib\docs\htmlhelp\stc.*
215 Rem erase /Y contrib\docs\pdf\*.*
216 erase /sxzy contrib\docs\latex\ogl
217 erase /Y src\mingegcs.bat
218 erase /Y distrib
219
220 rem Now copy some binary files to 'bin'
221 if not isdir bin mkdir bin
222 copy %src\bin\dialoged.exe bin
223 copy %src\bin\tex2rtf.exe bin
224 copy %src\bin\dbgview.* bin
225 copy %src\bin\widgets.exe bin
226 copy %src\bin\widgets.exe.manifest bin
227 copy %src\bin\life.exe bin
228 copy %src\bin\life.exe.manifest bin
229 copy %src\demos\life\breeder.lif bin
230 copy %src\docs\htmlhelp\dialoged.chm bin
231 copy %src\docs\htmlhelp\tex2rtf.chm bin
232
233 if not direxist docs\pdf mkdir docs\pdf
234 copy %src\docs\pdf\wxTutorial.pdf docs\pdf
235
236 Rem Make wxMSW-xxx.zip
237 cd %dest%
238 zip32 -r wxMSW-%version%.zip wxWindows-%version%/*
239 cd wxWindows-%version%
240
241 echo Calling 'makeinno' to generate wxwin2.iss...
242 call %WXWIN\distrib\msw\makeinno.bat
243
244 erase /Y %dest\setup.*
245
246 rem Now invoke Inno Setup on the new wxwin2.iss
247 set innocmd="C:\Program Files\Inno Setup 2\compil32.exe" /cc %WXWIN\distrib\msw\wxwin2.iss
248 echo Invoking %innocmd...
249 start "Inno Setup" /w %innocmd%
250 pause Press any key to continue with the wxWindows distribution...
251 Rem ren %WXWIN\deliver2\setup.EXE %WXWIN\deliver2\wxMSW-%version%-setup.exe
252
253 :tidyup
254 cd %dest
255
256 rem Put all the setup files into a single zip archive.
257 zip32 wxMSW-%version%-setup.zip readme-%version%.txt setup*.*
258
259 erase /Y wxWindows-%version%-win.zip
260 erase /Y wxWindows-%version%-ExtraDoc.zip
261
262 echo wxWindows archived.
263
264 goto end
265
266 :usage
267 echo DOS wxWindows distribution. Zips up all MSW, OS/2, Mac and doc files,
268 echo and optionally makes a setup.exe echo if you specify 'inno'
269 echo (skipping the zipping if you use 'innoonly').
270 echo.
271 echo "Usage: zipdistinno [inno | innoonly]"
272
273 :end