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