]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/msw/zipdistinno.bat
Added wxCocoa files to build system
[wxWidgets.git] / distrib / msw / zipdistinno.bat
... / ...
CommitLineData
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
6set webfiles=c:\wx2dev\wxWebSite
7set inno=0
8
9Rem Set this to the required version
10set version=2.4.0
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
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*
43
44if direxist %dest\wx erase /sxyz %dest\wx\
45if not direxist %dest mkdir %dest
46if direxist %dest%\wxWindows-%version% erase /sxyz %dest%\wxWindows-%version%
47
48Rem 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
54copy %webfiles%\site\i18n.htm %src\docs\html
55
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
59copy %src%\include\wx\univ\setup0.h %src%\include\wx\univ\setup.h
60
61cd %src%
62echo Zipping...
63
64Rem Zip up the complete wxOS2-xxx.zip file
65zip32 -@ %dest\wxOS2-%version%.zip < %src\distrib\msw\generic.rsp
66zip32 -@ -u %dest%\wxOS2-%version%.zip < %src\distrib\msw\os2.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
79Rem Rearchive under wxWindows-%version%
80if direxist %dest%\wxWindows-%version% erase /sxyz %dest%\wxWindows-%version%
81
82mkdir %dest%\wxWindows-%version%
83cd %dest%\wxWindows-%version%
84unzip32 ..\wxOS2-%version%.zip
85echo Overwriting with OS2-specific versions of configure files...
86unzip32 -o %src%\distrib\os2\os2-specific.zip
87erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\*.pdf
88erase /Y src\tiff\*.mcp src\jpeg\*.mcp src\png\*.mcp src\zlib\*.mcp
89erase /SXY docs\html\dialoged docs\html\tex2rtf
90
91echo Making files lower case...
92cd src\os2
93call %src%\distrib\msw\lower.bat
94cd ..\..\include\wx\os2
95call %src%\distrib\msw\lower.bat
96
97cd %dest%
98
99erase wxOS2-%version%.zip
100zip32 -r wxOS2-%version%.zip wxWindows-%version%/*
101
102cd %src%
103
104echo Zipping wxMac distribution
105
106copy %src%\include\wx\mac\setup0.h %src%\include\wx\setup.h
107
108zip32 -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\generic.rsp
109zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\mac.rsp
110zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\cw_mac.rsp
111zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tiff.rsp
112zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\jpeg.rsp
113zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\utils.rsp
114zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
115zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\dialoged.rsp
116zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\ogl.rsp
117zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\xml.rsp
118zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\stc.rsp
119zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\contrib.rsp
120zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\makefile.rsp
121
122zip32 -@ %dest%\wxWindows-%version%-CW-Mac.zip < %src%\distrib\msw\cw_mac.rsp
123
124erase /Y %src%\include\wx\setup.h
125
126if direxist %dest%\wxWindows-%version% erase /sxyz %dest%\wxWindows-%version%
127
128mkdir %dest%\wxWindows-%version%
129cd %dest%\wxWindows-%version%
130unzip32 ..\wxMac-%version%.zip
131erase /Y src\gtk\descrip.mms src\motif\descrip.mms docs\pdf\*.pdf
132erase /SXY docs\html\dialoged docs\html\tex2rtf docs\htmlhelp
133
134cd %dest%
135
136erase wxMac-%version%.zip
137zip32 -r wxMac-%version%.zip wxWindows-%version%/*
138
139cd %src%
140
141Rem Create wxWindows-%version%-win.zip which is used to create wxMSW
142echo Zipping individual components
143zip32 -@ %dest\wxWindows-%version%-win.zip < %src\distrib\msw\generic.rsp
144zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\makefile.rsp
145zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\msw.rsp
146zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\ogl.rsp
147zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\mmedia.rsp
148zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\stc.rsp
149zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tex2rtf.rsp
150zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\jpeg.rsp
151zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\tiff.rsp
152zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\xml.rsp
153zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\contrib.rsp
154zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\dialoged.rsp
155zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utils.rsp
156zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\utilmake.rsp
157zip32 -@ -u %dest\wxWindows-%version%-win.zip < %src\distrib\msw\univ.rsp
158
159echo Re-archiving wxWindows-%version%-win.zip
160call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-win.zip wxWindows-%version% %dest%
161
162echo Removing .mms files
163zip32 -d %dest%\wxWindows-%version%-win.zip wxWindows-%version%/src/gtk/descrip.mms wxWindows-%version%/src/motif/descrip.mms
164
165echo Creating %dest\wxWindows-%version%-DocSource.zip
166zip32 -@ %dest\wxWindows-%version%-DocSource.zip < %src\distrib\msw\docsrc.rsp
167call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-DocSource.zip wxWindows-%version% %dest%
168
169echo Creating %dest\wxWindows-%version%-WinHelp.zip
170zip32 -@ %dest\wxWindows-%version%-WinHelp.zip < %src\distrib\msw\wx_hlp.rsp
171call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-WinHelp.zip wxWindows-%version% %dest%
172
173echo Creating %dest\wxWindows-%version%-HTML.zip
174zip32 -@ %dest\wxWindows-%version%-HTML.zip < %src\distrib\msw\wx_html.rsp
175call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTML.zip wxWindows-%version% %dest%
176
177echo Creating %dest\wxWindows-%version%-PDF.zip
178zip32 -@ %dest\wxWindows-%version%-PDF.zip < %src\distrib\msw\wx_pdf.rsp
179call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-PDF.zip wxWindows-%version% %dest%
180
181Rem zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp
182Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Word.zip wxWindows-%version% %dest%
183
184echo Creating %dest\wxWindows-%version%-HTB.zip
185zip32 -@ %dest\wxWindows-%version%-HTB.zip < %src\distrib\msw\wx_htb.rsp
186call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTB.zip wxWindows-%version% %dest%
187
188echo Creating %dest\wxWindows-%version%-HTMLHelp.zip
189zip32 -@ %dest\wxWindows-%version%-HTMLHelp.zip < %src\distrib\msw\wx_chm.rsp
190call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-HTMLHelp.zip wxWindows-%version% %dest%
191
192Rem Add Linuxy docs to a separate archive to be transported to Linux for the
193Rem Linux-based releases
194echo Creating %dest\wxWindows-%version%-LinuxDocs.zip
195zip32 -@ %dest\wxWindows-%version%-LinuxDocs.zip < %src\distrib\msw\wx_html.rsp
196zip32 -@ -u %dest\wxWindows-%version%-LinuxDocs.zip < %src\distrib\msw\wx_pdf.rsp
197zip32 -@ -u %dest\wxWindows-%version%-LinuxDocs.zip < %src\distrib\msw\wx_htb.rsp
198
199Rem PDF/HTML docs that should go into the Windows setup because
200Rem there are no WinHelp equivalents
201echo Creating %dest\wxWindows-%version%-ExtraDoc.zip
202zip32 -@ %dest\wxWindows-%version%-ExtraDoc.zip < %src\distrib\msw\extradoc.rsp
203call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-ExtraDoc.zip wxWindows-%version% %dest%
204
205Rem zip up Univ-specific files
206echo Creating %dest\wxWindows-%version%-Univ.zip
207zip32 -@ %dest\wxWindows-%version%-Univ.zip < %src\distrib\msw\univ.rsp
208call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-Univ.zip wxWindows-%version% %dest%
209
210rem VC++ project files
211echo Creating %dest\wxWindows-%version%-VC.zip
212zip32 -@ %dest\wxWindows-%version%-VC.zip < %src\distrib\msw\vc.rsp
213Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-VC.zip wxWindows-%version% %dest%
214
215rem BC++ project files
216echo Creating %dest\wxWindows-%version%-BC.zip
217zip32 -@ %dest\wxWindows-%version%-BC.zip < %src\distrib\msw\bc.rsp
218Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-BC.zip wxWindows-%version% %dest%
219
220rem CodeWarrior project files
221echo Creating %dest\wxWindows-%version%-CW.zip
222zip32 -@ %dest\wxWindows-%version%-CW.zip < %src\distrib\msw\cw.rsp
223Rem call %WXWIN%\distrib\msw\rearchive wxWindows-%version%-CW.zip wxWindows-%version% %dest%
224
225rem Dialog Editor source and binary
226Rem erase %dest\dialoged-source.zip
227Rem zip32 -@ %dest\dialoged-source.zip < %src\distrib\msw\dialoged.rsp
228Rem zip32 -j %dest\dialoged-%version%.zip %dest\dialoged-source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt
229Rem erase %dest\dialoged-source.zip
230
231copy %src\docs\changes.txt %dest\changes-%version%.txt
232copy %src\docs\msw\install.txt %dest\install-msw-%version%.txt
233copy %src\docs\mac\install.txt %dest\install-mac-%version%.txt
234copy %src\docs\motif\install.txt %dest\install-motif-%version%.txt
235copy %src\docs\gtk\install.txt %dest\install-gtk-%version%.txt
236copy %src\docs\x11\install.txt %dest\install-x11-%version%.txt
237copy %src\docs\readme.txt %dest\readme-%version%.txt
238copy %src\docs\motif\readme.txt %dest\readme-motif-%version%.txt
239copy %src\docs\gtk\readme.txt %dest\readme-gtk-%version%.txt
240copy %src\docs\x11\readme.txt %dest\readme-x11-%version%.txt
241copy %src\docs\x11\readme-nanox.txt %dest\readme-nanox-%version%.txt
242copy %src\docs\msw\readme.txt %dest\readme-msw-%version%.txt
243copy %src\docs\mac\readme.txt %dest\readme-mac-%version%.txt
244copy %src\docs\base\readme.txt %dest\readme-base-%version%.txt
245copy %src\docs\os2\install.txt %dest\install-os2-%version%.txt
246copy %src\docs\univ\readme.txt %dest\readme-univ-%version%.txt
247copy %src\docs\readme_vms.txt %dest\readme-vms-%version%.txt
248Rem copy %src\docs\motif\makewxmotif %dest\makewxmotif-%version%
249Rem copy %src\docs\gtk\makewxgtk %dest\makewxgtk-%version%
250
251Rem Skip Inno Setup if inno is 0.
252if "%inno" == "0" goto end
253
254:dounzip
255
256Rem Make dialoged-win32.zip and tex2rtf-win32.zip
257
258Rem cd %src\bin
259Rem zip32 %dest\dialoged-win32-%version%.zip dialoged.*
260Rem zip32 %dest\tex2rtf-win32-%version%.zip tex2rtf.*
261
262cd %dest
263
264rem Put all archives for transit to Linux in a zip file
265echo Creating %dest\wxWindows-%version%-LinuxTransit.zip
266erase %dest\wxWindows-%version%-LinuxTransit.zip
267zip32 %dest\wxWindows-%version%-LinuxTransit.zip wxWindows-%version%-LinuxDocs.zip wxWindows-%version%-VC.zip wxWindows-%version%-CW-Mac.zip
268
269echo Unzipping the Windows files into wxWindows-%version%
270
271unzip32 -o wxWindows-%version%-win.zip
272unzip32 -o wxWindows-%version%-VC.zip -d wxWindows-%version
273unzip32 -o wxWindows-%version%-BC.zip -d wxWindows-%version
274unzip32 -o wxWindows-%version%-CW.zip -d wxWindows-%version
275unzip32 -o wxWindows-%version%-HTMLHelp.zip
276unzip32 -o wxWindows-%version%-ExtraDoc.zip
277Rem Need Word file, for Remstar DB classes
278Rem Not any more
279Rem unzip32 -o wxWindows-%version%-Word.zip
280
281Rem After this change of directory, we're in the
282Rem temporary 'wx' directory and not acting on
283Rem the source wxWindows directory.
284cd %dest%\wxWindows-%version%
285
286rem Now delete a few files that are unnecessary
287attrib -R *
288erase /Y BuildCVS.txt descrip.mms
289erase /Y setup.h_vms
290erase /Y docs\html\wxbook.htm docs\html\roadmap.htm
291Rem erase /Y contrib\docs\winhelp\mmedia.*
292Rem erase /Y contrib\docs\winhelp\stc.*
293Rem erase /Y contrib\docs\htmlhelp\mmedia.*
294Rem erase /Y contrib\docs\htmlhelp\stc.*
295Rem erase /Y contrib\docs\pdf\*.*
296erase /sxzy contrib\docs\latex\ogl
297erase /Y src\mingegcs.bat
298erase /Y distrib
299
300rem Now copy some binary files to 'bin'
301if not isdir bin mkdir bin
302copy %src\bin\dialoged.exe bin
303copy %src\bin\dialoged.hlp bin
304copy %src\bin\dialoged.chm bin
305copy %src\bin\tex2rtf.exe bin
306copy %src\bin\tex2rtf.hlp bin
307copy %src\bin\tex2rtf.cnt bin
308copy %src\bin\dbgview.* bin
309copy %src\bin\widgets.exe bin
310copy %src\bin\widgets.exe.manifest bin
311copy %src\bin\life.exe bin
312copy %src\bin\life.exe.manifest bin
313copy %src\demos\life\breeder.lif bin
314copy %src\docs\htmlhelp\dialoged.chm bin
315copy %src\docs\htmlhelp\tex2rtf.chm bin
316
317if not direxist docs\pdf mkdir docs\pdf
318copy %src\docs\pdf\wxTutorial.pdf docs\pdf
319
320Rem Make wxMSW-xxx.zip
321cd %dest%
322zip32 -r wxMSW-%version%.zip wxWindows-%version%/*
323cd wxWindows-%version%
324
325echo Calling 'makeinno' to generate wxwin2.iss...
326call %WXWIN\distrib\msw\makeinno.bat
327
328erase /Y %dest\setup.*
329
330rem Now invoke Inno Setup on the new wxwin2.iss
331set innocmd="C:\Program Files\Inno Setup 2\compil32.exe" /cc %WXWIN\distrib\msw\wxwin2.iss
332echo Invoking %innocmd...
333start "Inno Setup" /w %innocmd%
334Rem pause Press any key to continue with the wxWindows distribution...
335
336:tidyup
337cd %dest
338
339rem Put all the setup files into a single zip archive.
340zip32 wxMSW-%version%-setup.zip readme-%version%.txt setup*.*
341
342erase /Y wxWindows-%version%-win.zip
343erase /Y wxWindows-%version%-ExtraDoc.zip
344
345echo wxWindows archived.
346
347goto end
348
349:usage
350echo DOS wxWindows distribution. Zips up all MSW, OS/2, Mac and doc files,
351echo and optionally makes a setup.exe echo if you specify 'inno'
352echo (skipping the zipping if you use 'innoonly').
353echo.
354echo "Usage: zipdistinno [inno | innoonly]"
355
356:end