]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdistinno.bat
Script updates
[wxWidgets.git] / distrib / msw / zipdistinno.bat
CommitLineData
46f5ad7d
JS
1@echo off
2rem Zip up an external, generic + Windows distribution of wxWindows 2
3rem using Inno Setup + ScriptMaker
4set src=%wxwin
5set dest=%src\deliver
8b283bb8 6set webfiles=c:\wx2dev\wxWebSite
46f5ad7d
JS
7set inno=0
8
9Rem Set this to the required version
cd508246 10set version=2.3.3
46f5ad7d
JS
11
12if "%src" == "" goto usage
13if "%dest" == "" goto usage
14if "%1" == "-help" goto usage
15if "%1" == "--help" goto usage
16if "%1" == "/?" goto usage
17if "%1" == "innoonly" goto dounzip
18if "%1" == "inno" set inno=1
19if "%1" == "tidyup" goto tidyup
20echo About to archive an external wxWindows distribution:
21echo From %src
22echo To %dest
23if "%inno" == "1" echo with Inno Setup creation.
24echo CTRL-C if this is not correct.
25pause
26
27erase %dest\wx*.zip
28erase %dest\*.htb
940718f0
JS
29erase %dest\ogl3*.zip
30erase %dest\contrib*.zip
31erase %dest\tex2rtf2*.zip
32erase %dest\mmedia*.zip
33erase %dest\jpeg*.zip
34erase %dest\tiff*.zip
35erase %dest\dialoged*.zip
36erase %dest\utils*.zip
37erase %dest\extradoc*.zip
38erase %dest\stc*.zip
39erase %dest\*-win32*.zip
40erase %dest\setup*.*
41erase %dest\*.txt
42erase %dest\make*
46f5ad7d
JS
43
44if direxist %dest\wx erase /sxyz %dest\wx\
45if not direxist %dest mkdir %dest
e492150d 46if direxist %dest%\wxWindows-%version% erase /sxyz %dest%\wxWindows-%version%
46f5ad7d 47
8b283bb8
JS
48# Copy FAQ from wxWebSite CVS
49if not direxist %webfiles% echo Error - %webfiles% does not exist
50if not direxist %webfiles% goto end
51echo Copying FAQ and other files from %webfiles
52copy %webfiles%\site\faq*.htm %src\docs\html
53copy %webfiles%\site\platform.htm %src\docs\html
7be6137a 54copy %webfiles%\site\i18n.htm %src\docs\html
8b283bb8 55
c9b3918a
JS
56Rem Copy setup0.h files to setup.h
57copy %src%\include\wx\os2\setup0.h %src%\include\wx\os2\setup.h
58copy %src%\include\wx\msw\setup0.h %src%\include\wx\msw\setup.h
59
f9ceab7c 60cd %src%
46f5ad7d
JS
61echo Zipping...
62
332b8edb
JS
63Rem Zip up the complete wxOS2-xxx.zip file
64zip32 -@ %dest\wxOS2-%version%.zip < %src\distrib\msw\generic.rsp
65zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\os2.rsp
332b8edb
JS
66zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\jpeg.rsp
67zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\tiff.rsp
68zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tiff.rsp
69zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\jpeg.rsp
70zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\utils.rsp
71zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
72zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\dialoged.rsp
73zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\ogl.rsp
74zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\xml.rsp
75zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\contrib.rsp
76zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\makefile.rsp
77
e492150d 78Rem Rearchive under wxWindows-%version%
f9ceab7c 79if direxist %dest%\wxWindows-%version% erase /sxyz %dirname%\wxWindows-%version%
e492150d 80
f9ceab7c
JS
81mkdir %dest%\wxWindows-%version%
82cd %dest%\wxWindows-%version%
83unzip32 ..\wxOS2-%version%.zip
a165a5dd
JS
84echo Overwriting with OS2-specific versions of configure files...
85unzip32 -o %src%\distrib\os2\os2-specific.zip
f9ceab7c
JS
86erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\*.pdf
87erase /Y src\tiff\*.mcp src\jpeg\*.mcp src\png\*.mcp src\zlib\*.mcp
88erase /SXY docs\html\dialoged docs\html\tex2rtf
89
90echo Making files lower case...
91cd src\os2
92call %src%\distrib\msw\lower.bat
93cd ..\..\include\wx\os2
94call %src%\distrib\msw\lower.bat
95
96cd %dest%
97
98erase wxOS2-%version%.zip
99zip32 -r wxOS2-%version%.zip wxWindows-%version%/*
100
101cd %src%
1241ab8b 102
940718f0 103echo Zipping wxMac distribution
c9b3918a
JS
104
105copy %src%\include\wx\mac\setup0.h %src%\include\wx\setup.h
106
940718f0
JS
107zip32 -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\generic.rsp
108zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\mac.rsp
fde719f9 109zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\cw_mac.rsp
940718f0
JS
110zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tiff.rsp
111zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\jpeg.rsp
332b8edb 112zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\utils.rsp
940718f0
JS
113zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
114zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\dialoged.rsp
115zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\ogl.rsp
116zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\xml.rsp
dba860d9 117zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\stc.rsp
35820dcb
JS
118zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\contrib.rsp
119zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\makefile.rsp
c9b3918a
JS
120
121erase /Y %src%\include\wx\setup.h
122
f9ceab7c
JS
123if direxist %dest%\wxWindows-%version% erase /sxyz %dirname%\wxWindows-%version%
124
125mkdir %dest%\wxWindows-%version%
126cd %dest%\wxWindows-%version%
127unzip32 ..\wxMac-%version%.zip
128erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\*.pdf
129erase /SXY docs\html\dialoged docs\html\tex2rtf docs\htmlhelp
130
131cd %dest%
132
133erase wxMac-%version%.zip
134zip32 -r wxMac-%version%.zip wxWindows-%version%/*
940718f0 135
f9ceab7c 136cd %src%
1241ab8b 137
e492150d 138Rem Create wxWindows-%version%-win.zip which is used to create wxMSW
940718f0 139echo Zipping individual components
e492150d
JS
140zip32 -@ %dest\wxWindows-%version%-win.zip < %src\distrib\msw\generic.rsp
141zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\makefile.rsp
142zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\msw.rsp
143zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\ogl.rsp
144zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\mmedia.rsp
145zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\stc.rsp
146zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tex2rtf.rsp
147zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\jpeg.rsp
148zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tiff.rsp
149zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\xml.rsp
150zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\contrib.rsp
151zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\dialoged.rsp
152zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utils.rsp
153zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utilmake.rsp
154zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\univ.rsp
155
156call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-win.zip wxWindows-%version% %dest%
46f5ad7d 157
1241ab8b
JS
158zip32 -d %dest%\wxWindows-%version%-win.zip %dest%/src/gtk/descrip.mms %dest%/src/motif/descrip.mms
159
46f5ad7d 160zip32 -@ %dest\wxWindows-%version%-DocSource.zip < %src\distrib\msw\docsrc.rsp
e492150d
JS
161call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-DocSource.zip wxWindows-%version% %dest%
162
46f5ad7d 163zip32 -@ %dest\wxWindows-%version%-WinHelp.zip < %src\distrib\msw\wx_hlp.rsp
e492150d
JS
164call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-WinHelp.zip wxWindows-%version% %dest%
165
46f5ad7d 166zip32 -@ %dest\wxWindows-%version%-HTML.zip < %src\distrib\msw\wx_html.rsp
e492150d
JS
167call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTML.zip wxWindows-%version% %dest%
168
46f5ad7d 169zip32 -@ %dest\wxWindows-%version%-PDF.zip < %src\distrib\msw\wx_pdf.rsp
e492150d
JS
170call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-PDF.zip wxWindows-%version% %dest%
171
172Rem zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp
173Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Word.zip wxWindows-%version% %dest%
174
46f5ad7d 175zip32 -@ %dest\wxWindows-%version%-HTB.zip < %src\distrib\msw\wx_htb.rsp
e492150d
JS
176call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTB.zip wxWindows-%version% %dest%
177
46f5ad7d 178zip32 -@ %dest\wxWindows-%version%-HTMLHelp.zip < %src\distrib\msw\wx_chm.rsp
e492150d 179call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTMLHelp.zip wxWindows-%version% %dest%
46f5ad7d
JS
180
181Rem PDF/HTML docs that should go into the Windows setup because
182Rem there are no WinHelp equivalents
e492150d
JS
183zip32 -@ %dest\wxWindows-%version%-ExtraDoc.zip < %src\distrib\msw\extradoc.rsp
184call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-ExtraDoc.zip wxWindows-%version% %dest%
46f5ad7d 185
8f3fc6b4 186Rem zip up Univ-specific files
e492150d
JS
187zip32 -@ %dest\wxWindows-%version%-Univ.zip < %src\distrib\msw\univ.rsp
188call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Univ.zip wxWindows-%version% %dest%
8f3fc6b4 189
46f5ad7d 190rem VC++ project files
e492150d
JS
191zip32 -@ %dest\wxWindows-%version%-VC.zip < %src\distrib\msw\vc.rsp
192call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-VC.zip wxWindows-%version% %dest%
46f5ad7d
JS
193
194rem BC++ project files
e492150d
JS
195zip32 -@ %dest\wxWindows-%version%-BC.zip < %src\distrib\msw\bc.rsp
196call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-BC.zip wxWindows-%version% %dest%
46f5ad7d
JS
197
198rem CodeWarrior project files
e492150d
JS
199zip32 -@ %dest\wxWindows-%version%-CW.zip < %src\distrib\msw\cw.rsp
200call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-CW.zip wxWindows-%version% %dest%
c60f5c65 201
46f5ad7d 202rem Dialog Editor source and binary
7be6137a
JS
203Rem erase %dest\dialoged-source.zip
204Rem zip32 -@ %dest\dialoged-source.zip < %src\distrib\msw\dialoged.rsp
205Rem zip32 -j %dest\dialoged-%version%.zip %dest\dialoged-source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt
206Rem erase %dest\dialoged-source.zip
46f5ad7d 207
940718f0 208copy %src\docs\changes.txt %dest\changes-%version%.txt
332b8edb
JS
209copy %src\docs\msw\install.txt %dest\install-msw-%version%.txt
210copy %src\docs\mac\install.txt %dest\install-mac-%version%.txt
211copy %src\docs\motif\install.txt %dest\install-motif-%version%.txt
212copy %src\docs\gtk\install.txt %dest\install-gtk-%version%.txt
b5c70253 213copy %src\docs\x11\install.txt %dest\install-x11-%version%.txt
940718f0 214copy %src\docs\readme.txt %dest\readme-%version%.txt
332b8edb
JS
215copy %src\docs\motif\readme.txt %dest\readme-motif-%version%.txt
216copy %src\docs\gtk\readme.txt %dest\readme-gtk-%version%.txt
b5c70253
JS
217copy %src\docs\x11\readme.txt %dest\readme-x11-%version%.txt
218copy %src\docs\x11\readme-nanox.txt %dest\readme-nanox-%version%.txt
332b8edb
JS
219copy %src\docs\msw\readme.txt %dest\readme-msw-%version%.txt
220copy %src\docs\mac\readme.txt %dest\readme-mac-%version%.txt
221copy %src\docs\os2\install.txt %dest\install-os2-%version%.txt
222copy %src\docs\readme_vms.txt %dest\readme-vms-%version%.txt
940718f0
JS
223copy %src\docs\motif\makewxmotif %dest\makewxmotif-%version%
224copy %src\docs\gtk\makewxgtk %dest\makewxgtk-%version%
46f5ad7d
JS
225
226Rem Skip Inno Setup if inno is 0.
227if "%inno" == "0" goto end
228
229:dounzip
230
231Rem Make dialoged-win32.zip and tex2rtf-win32.zip
232
7be6137a
JS
233Rem cd %src\bin
234Rem zip32 %dest\dialoged-win32-%version%.zip dialoged.*
235Rem zip32 %dest\tex2rtf-win32-%version%.zip tex2rtf.*
46f5ad7d
JS
236
237cd %dest
238
e492150d
JS
239rem Unzip the Windows files into 'wxWindows-%version%'
240
241unzip32 -o wxWindows-%version%-win.zip
242unzip32 -o wxWindows-%version%-VC.zip
243unzip32 -o wxWindows-%version%-BC.zip
244unzip32 -o wxWindows-%version%-HTMLHelp.zip
245unzip32 -o wxWindows-%version%-ExtraDoc.zip
246Rem Need Word file, for Remstar DB classes
247Rem Not any more
248Rem unzip32 -o wxWindows-%version%-Word.zip
46f5ad7d
JS
249
250Rem After this change of directory, we're in the
251Rem temporary 'wx' directory and not acting on
252Rem the source wxWindows directory.
e492150d 253cd %dest%\wxWindows-%version%
46f5ad7d
JS
254
255rem Now delete a few files that are unnecessary
256attrib -R *
e492150d
JS
257erase /Y BuildCVS.txt descrip.mms
258erase /Y setup.h_vms
46f5ad7d 259erase /Y docs\html\wxbook.htm docs\html\roadmap.htm
35820dcb
JS
260Rem erase /Y contrib\docs\winhelp\mmedia.*
261Rem erase /Y contrib\docs\winhelp\stc.*
262Rem erase /Y contrib\docs\htmlhelp\mmedia.*
263Rem erase /Y contrib\docs\htmlhelp\stc.*
264Rem erase /Y contrib\docs\pdf\*.*
46f5ad7d
JS
265erase /sxzy contrib\docs\latex\ogl
266erase /Y src\mingegcs.bat
267erase /Y distrib
268
269rem Now copy some binary files to 'bin'
270if not isdir bin mkdir bin
271copy %src\bin\dialoged.exe bin
c832ef49
JS
272copy %src\bin\dialoged.hlp bin
273copy %src\bin\dialoged.chm bin
46f5ad7d 274copy %src\bin\tex2rtf.exe bin
c832ef49
JS
275copy %src\bin\tex2rtf.hlp bin
276copy %src\bin\tex2rtf.cnt bin
46f5ad7d 277copy %src\bin\dbgview.* bin
171fe25b
JS
278copy %src\bin\widgets.exe bin
279copy %src\bin\widgets.exe.manifest bin
6aa3ea88
JS
280copy %src\bin\life.exe bin
281copy %src\bin\life.exe.manifest bin
282copy %src\demos\life\breeder.lif bin
171fe25b
JS
283copy %src\docs\htmlhelp\dialoged.chm bin
284copy %src\docs\htmlhelp\tex2rtf.chm bin
46f5ad7d 285
7be6137a
JS
286if not direxist docs\pdf mkdir docs\pdf
287copy %src\docs\pdf\wxTutorial.pdf docs\pdf
288
46f5ad7d 289Rem Make wxMSW-xxx.zip
e492150d
JS
290cd %dest%
291zip32 -r wxMSW-%version%.zip wxWindows-%version%/*
292cd wxWindows-%version%
46f5ad7d 293
46f5ad7d
JS
294echo Calling 'makeinno' to generate wxwin2.iss...
295call %WXWIN\distrib\msw\makeinno.bat
296
297erase /Y %dest\setup.*
298
299rem Now invoke Inno Setup on the new wxwin2.iss
cd508246 300set innocmd="C:\Program Files\Inno Setup 2\compil32.exe" /cc %WXWIN\distrib\msw\wxwin2.iss
46f5ad7d
JS
301echo Invoking %innocmd...
302start "Inno Setup" /w %innocmd%
316df2f2 303Rem pause Press any key to continue with the wxWindows distribution...
46f5ad7d
JS
304
305:tidyup
306cd %dest
307
308rem Put all the setup files into a single zip archive.
e492150d 309zip32 wxMSW-%version%-setup.zip readme-%version%.txt setup*.*
46f5ad7d 310
7be6137a
JS
311erase /Y wxWindows-%version%-win.zip
312erase /Y wxWindows-%version%-ExtraDoc.zip
313
46f5ad7d
JS
314echo wxWindows archived.
315
316goto end
317
318:usage
e492150d
JS
319echo DOS wxWindows distribution. Zips up all MSW, OS/2, Mac and doc files,
320echo and optionally makes a setup.exe echo if you specify 'inno'
321echo (skipping the zipping if you use 'innoonly').
46f5ad7d 322echo.
e492150d 323echo "Usage: zipdistinno [inno | innoonly]"
46f5ad7d
JS
324
325:end