]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdistinno.bat
Updated release scripts
[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
46f5ad7d
JS
60cd %src
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
66zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\wx_chm.rsp
67zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\jpeg.rsp
68zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\tiff.rsp
69zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tiff.rsp
70zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\jpeg.rsp
71zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\utils.rsp
72zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
73zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\dialoged.rsp
74zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\ogl.rsp
75zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\xml.rsp
76zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\contrib.rsp
77zip32 -u -@ %dest%\wxOS2-%version%.zip < %src%\distrib\msw\makefile.rsp
78
e492150d
JS
79Rem Rearchive under wxWindows-%version%
80call %WXWIN%\distrib\msw\rearchive wxOS2-%version%.zip wxWindows-%version% %dest%
81
1241ab8b
JS
82zip32 -d %dest%\wxOS2-%version%.zip %dest%/src/gtk/descrip.mms %dest%/src/motif/descrip.mms
83
940718f0 84echo Zipping wxMac distribution
c9b3918a
JS
85
86copy %src%\include\wx\mac\setup0.h %src%\include\wx\setup.h
87
940718f0
JS
88zip32 -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\generic.rsp
89zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\mac.rsp
fde719f9 90zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\cw_mac.rsp
940718f0
JS
91zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tiff.rsp
92zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\jpeg.rsp
332b8edb 93zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\utils.rsp
940718f0
JS
94zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
95zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\dialoged.rsp
96zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\ogl.rsp
97zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\xml.rsp
dba860d9 98zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\stc.rsp
35820dcb
JS
99zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\contrib.rsp
100zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\makefile.rsp
c9b3918a
JS
101
102erase /Y %src%\include\wx\setup.h
103
e492150d 104call %WXWIN%\distrib\msw\rearchive wxMac-%version%.zip wxWindows-%version% %dest%
940718f0 105
1241ab8b
JS
106zip32 -d %dest%\wxMac-%version%.zip %dest%/src/gtk/descrip.mms %dest%/src/motif/descrip.mms
107
e492150d 108Rem Create wxWindows-%version%-win.zip which is used to create wxMSW
940718f0 109echo Zipping individual components
e492150d
JS
110zip32 -@ %dest\wxWindows-%version%-win.zip < %src\distrib\msw\generic.rsp
111zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\makefile.rsp
112zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\msw.rsp
113zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\ogl.rsp
114zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\mmedia.rsp
115zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\stc.rsp
116zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tex2rtf.rsp
117zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\jpeg.rsp
118zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tiff.rsp
119zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\xml.rsp
120zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\contrib.rsp
121zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\dialoged.rsp
122zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utils.rsp
123zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utilmake.rsp
124zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\univ.rsp
125
126call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-win.zip wxWindows-%version% %dest%
46f5ad7d 127
1241ab8b
JS
128zip32 -d %dest%\wxWindows-%version%-win.zip %dest%/src/gtk/descrip.mms %dest%/src/motif/descrip.mms
129
46f5ad7d 130zip32 -@ %dest\wxWindows-%version%-DocSource.zip < %src\distrib\msw\docsrc.rsp
e492150d
JS
131call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-DocSource.zip wxWindows-%version% %dest%
132
46f5ad7d 133zip32 -@ %dest\wxWindows-%version%-WinHelp.zip < %src\distrib\msw\wx_hlp.rsp
e492150d
JS
134call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-WinHelp.zip wxWindows-%version% %dest%
135
46f5ad7d 136zip32 -@ %dest\wxWindows-%version%-HTML.zip < %src\distrib\msw\wx_html.rsp
e492150d
JS
137call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTML.zip wxWindows-%version% %dest%
138
46f5ad7d 139zip32 -@ %dest\wxWindows-%version%-PDF.zip < %src\distrib\msw\wx_pdf.rsp
e492150d
JS
140call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-PDF.zip wxWindows-%version% %dest%
141
142Rem zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp
143Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Word.zip wxWindows-%version% %dest%
144
46f5ad7d 145zip32 -@ %dest\wxWindows-%version%-HTB.zip < %src\distrib\msw\wx_htb.rsp
e492150d
JS
146call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTB.zip wxWindows-%version% %dest%
147
46f5ad7d 148zip32 -@ %dest\wxWindows-%version%-HTMLHelp.zip < %src\distrib\msw\wx_chm.rsp
e492150d 149call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTMLHelp.zip wxWindows-%version% %dest%
46f5ad7d
JS
150
151Rem PDF/HTML docs that should go into the Windows setup because
152Rem there are no WinHelp equivalents
e492150d
JS
153zip32 -@ %dest\wxWindows-%version%-ExtraDoc.zip < %src\distrib\msw\extradoc.rsp
154call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-ExtraDoc.zip wxWindows-%version% %dest%
46f5ad7d 155
8f3fc6b4 156Rem zip up Univ-specific files
e492150d
JS
157zip32 -@ %dest\wxWindows-%version%-Univ.zip < %src\distrib\msw\univ.rsp
158call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Univ.zip wxWindows-%version% %dest%
8f3fc6b4 159
46f5ad7d 160rem VC++ project files
e492150d
JS
161zip32 -@ %dest\wxWindows-%version%-VC.zip < %src\distrib\msw\vc.rsp
162call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-VC.zip wxWindows-%version% %dest%
46f5ad7d
JS
163
164rem BC++ project files
e492150d
JS
165zip32 -@ %dest\wxWindows-%version%-BC.zip < %src\distrib\msw\bc.rsp
166call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-BC.zip wxWindows-%version% %dest%
46f5ad7d
JS
167
168rem CodeWarrior project files
e492150d
JS
169zip32 -@ %dest\wxWindows-%version%-CW.zip < %src\distrib\msw\cw.rsp
170call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-CW.zip wxWindows-%version% %dest%
c60f5c65 171
46f5ad7d 172rem Dialog Editor source and binary
7be6137a
JS
173Rem erase %dest\dialoged-source.zip
174Rem zip32 -@ %dest\dialoged-source.zip < %src\distrib\msw\dialoged.rsp
175Rem zip32 -j %dest\dialoged-%version%.zip %dest\dialoged-source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt
176Rem erase %dest\dialoged-source.zip
46f5ad7d 177
940718f0 178copy %src\docs\changes.txt %dest\changes-%version%.txt
332b8edb
JS
179copy %src\docs\msw\install.txt %dest\install-msw-%version%.txt
180copy %src\docs\mac\install.txt %dest\install-mac-%version%.txt
181copy %src\docs\motif\install.txt %dest\install-motif-%version%.txt
182copy %src\docs\gtk\install.txt %dest\install-gtk-%version%.txt
b5c70253 183copy %src\docs\x11\install.txt %dest\install-x11-%version%.txt
940718f0 184copy %src\docs\readme.txt %dest\readme-%version%.txt
332b8edb
JS
185copy %src\docs\motif\readme.txt %dest\readme-motif-%version%.txt
186copy %src\docs\gtk\readme.txt %dest\readme-gtk-%version%.txt
b5c70253
JS
187copy %src\docs\x11\readme.txt %dest\readme-x11-%version%.txt
188copy %src\docs\x11\readme-nanox.txt %dest\readme-nanox-%version%.txt
332b8edb
JS
189copy %src\docs\msw\readme.txt %dest\readme-msw-%version%.txt
190copy %src\docs\mac\readme.txt %dest\readme-mac-%version%.txt
191copy %src\docs\os2\install.txt %dest\install-os2-%version%.txt
192copy %src\docs\readme_vms.txt %dest\readme-vms-%version%.txt
940718f0
JS
193copy %src\docs\motif\makewxmotif %dest\makewxmotif-%version%
194copy %src\docs\gtk\makewxgtk %dest\makewxgtk-%version%
46f5ad7d
JS
195
196Rem Skip Inno Setup if inno is 0.
197if "%inno" == "0" goto end
198
199:dounzip
200
201Rem Make dialoged-win32.zip and tex2rtf-win32.zip
202
7be6137a
JS
203Rem cd %src\bin
204Rem zip32 %dest\dialoged-win32-%version%.zip dialoged.*
205Rem zip32 %dest\tex2rtf-win32-%version%.zip tex2rtf.*
46f5ad7d
JS
206
207cd %dest
208
e492150d
JS
209rem Unzip the Windows files into 'wxWindows-%version%'
210
211unzip32 -o wxWindows-%version%-win.zip
212unzip32 -o wxWindows-%version%-VC.zip
213unzip32 -o wxWindows-%version%-BC.zip
214unzip32 -o wxWindows-%version%-HTMLHelp.zip
215unzip32 -o wxWindows-%version%-ExtraDoc.zip
216Rem Need Word file, for Remstar DB classes
217Rem Not any more
218Rem unzip32 -o wxWindows-%version%-Word.zip
46f5ad7d
JS
219
220Rem After this change of directory, we're in the
221Rem temporary 'wx' directory and not acting on
222Rem the source wxWindows directory.
e492150d 223cd %dest%\wxWindows-%version%
46f5ad7d
JS
224
225rem Now delete a few files that are unnecessary
226attrib -R *
e492150d
JS
227erase /Y BuildCVS.txt descrip.mms
228erase /Y setup.h_vms
46f5ad7d 229erase /Y docs\html\wxbook.htm docs\html\roadmap.htm
35820dcb
JS
230Rem erase /Y contrib\docs\winhelp\mmedia.*
231Rem erase /Y contrib\docs\winhelp\stc.*
232Rem erase /Y contrib\docs\htmlhelp\mmedia.*
233Rem erase /Y contrib\docs\htmlhelp\stc.*
234Rem erase /Y contrib\docs\pdf\*.*
46f5ad7d
JS
235erase /sxzy contrib\docs\latex\ogl
236erase /Y src\mingegcs.bat
237erase /Y distrib
238
239rem Now copy some binary files to 'bin'
240if not isdir bin mkdir bin
241copy %src\bin\dialoged.exe bin
c832ef49
JS
242copy %src\bin\dialoged.hlp bin
243copy %src\bin\dialoged.chm bin
46f5ad7d 244copy %src\bin\tex2rtf.exe bin
c832ef49
JS
245copy %src\bin\tex2rtf.hlp bin
246copy %src\bin\tex2rtf.cnt bin
46f5ad7d 247copy %src\bin\dbgview.* bin
171fe25b
JS
248copy %src\bin\widgets.exe bin
249copy %src\bin\widgets.exe.manifest bin
6aa3ea88
JS
250copy %src\bin\life.exe bin
251copy %src\bin\life.exe.manifest bin
252copy %src\demos\life\breeder.lif bin
171fe25b
JS
253copy %src\docs\htmlhelp\dialoged.chm bin
254copy %src\docs\htmlhelp\tex2rtf.chm bin
46f5ad7d 255
7be6137a
JS
256if not direxist docs\pdf mkdir docs\pdf
257copy %src\docs\pdf\wxTutorial.pdf docs\pdf
258
46f5ad7d 259Rem Make wxMSW-xxx.zip
e492150d
JS
260cd %dest%
261zip32 -r wxMSW-%version%.zip wxWindows-%version%/*
262cd wxWindows-%version%
46f5ad7d 263
46f5ad7d
JS
264echo Calling 'makeinno' to generate wxwin2.iss...
265call %WXWIN\distrib\msw\makeinno.bat
266
267erase /Y %dest\setup.*
268
269rem Now invoke Inno Setup on the new wxwin2.iss
cd508246 270set innocmd="C:\Program Files\Inno Setup 2\compil32.exe" /cc %WXWIN\distrib\msw\wxwin2.iss
46f5ad7d
JS
271echo Invoking %innocmd...
272start "Inno Setup" /w %innocmd%
316df2f2 273Rem pause Press any key to continue with the wxWindows distribution...
46f5ad7d
JS
274
275:tidyup
276cd %dest
277
278rem Put all the setup files into a single zip archive.
e492150d 279zip32 wxMSW-%version%-setup.zip readme-%version%.txt setup*.*
46f5ad7d 280
7be6137a
JS
281erase /Y wxWindows-%version%-win.zip
282erase /Y wxWindows-%version%-ExtraDoc.zip
283
46f5ad7d
JS
284echo wxWindows archived.
285
286goto end
287
288:usage
e492150d
JS
289echo DOS wxWindows distribution. Zips up all MSW, OS/2, Mac and doc files,
290echo and optionally makes a setup.exe echo if you specify 'inno'
291echo (skipping the zipping if you use 'innoonly').
46f5ad7d 292echo.
e492150d 293echo "Usage: zipdistinno [inno | innoonly]"
46f5ad7d
JS
294
295:end