]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdistinno.bat
compilation fix
[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
ed45cddc 10set version=2.3.2
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
46
8b283bb8
JS
47# Copy FAQ from wxWebSite CVS
48if not direxist %webfiles% echo Error - %webfiles% does not exist
49if not direxist %webfiles% goto end
50echo Copying FAQ and other files from %webfiles
51copy %webfiles%\site\faq*.htm %src\docs\html
52copy %webfiles%\site\platform.htm %src\docs\html
53
46f5ad7d
JS
54cd %src
55echo Zipping...
56
57Rem Zip up the complete wxMSW-xxx.zip file
58Rem NO, do it by unarchiving component files, deleting/copying some files, then
59Rem rearchiving.
60Rem zip32 -@ %dest\wxMSW-%version%.zip < %src\distrib\msw\generic.rsp
61Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\msw.rsp
62Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\wx_chm.rsp
63Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\jpeg.rsp
64Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\tiff.rsp
65
940718f0
JS
66echo Zipping wxMac distribution
67zip32 -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\generic.rsp
68zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\mac.rsp
69zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\cw.rsp
70zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tiff.rsp
71zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\jpeg.rsp
72zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
73zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\dialoged.rsp
74zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\ogl.rsp
75zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\xml.rsp
35820dcb
JS
76zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\contrib.rsp
77zip32 -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\makefile.rsp
940718f0 78
46f5ad7d
JS
79Rem Below is the old-style separated-out format. This is retained only
80Rem for local use, and for creating wxMSW-xxx.zip.
940718f0 81echo Zipping individual components
46f5ad7d
JS
82zip32 -@ %dest\wxWindows-%version%-gen.zip < %src\distrib\msw\generic.rsp
83zip32 -@ -u %dest\wxWindows-%version%-gen.zip < %src\distrib\msw\makefile.rsp
84zip32 -@ %dest\wxWindows-%version%-msw.zip < %src\distrib\msw\msw.rsp
85zip32 -@ -u %dest\wxWindows-%version%-msw.zip < %src\distrib\msw\makefile.rsp
86zip32 -@ %dest\wxWindows-%version%-gtk.zip < %src\distrib\msw\gtk.rsp
87zip32 -@ -u %dest\wxWindows-%version%-gtk.zip < %src\distrib\msw\makefile.rsp
88zip32 -@ %dest\wxWindows-%version%-stubs.zip < %src\distrib\msw\stubs.rsp
89zip32 -@ %dest\wxWindows-%version%-mot.zip < %src\distrib\msw\motif.rsp
90zip32 -@ -u %dest\wxWindows-%version%-mot.zip < %src\distrib\msw\makefile.rsp
91Rem (Obsolete) zip32 -@ %dest\wxWindows-%version%-user.zip < %src\distrib\msw\user.rsp
92
93zip32 -@ %dest\wxWindows-%version%-DocSource.zip < %src\distrib\msw\docsrc.rsp
94zip32 -@ %dest\wxWindows-%version%-WinHelp.zip < %src\distrib\msw\wx_hlp.rsp
95zip32 -@ %dest\wxWindows-%version%-HTML.zip < %src\distrib\msw\wx_html.rsp
96zip32 -@ %dest\wxWindows-%version%-PDF.zip < %src\distrib\msw\wx_pdf.rsp
97zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp
98zip32 -@ %dest\wxWindows-%version%-HTB.zip < %src\distrib\msw\wx_htb.rsp
99zip32 -@ %dest\wxWindows-%version%-HTMLHelp.zip < %src\distrib\msw\wx_chm.rsp
100
101Rem PDF/HTML docs that should go into the Windows setup because
102Rem there are no WinHelp equivalents
940718f0 103zip32 -@ %dest\extradoc-%version%.zip < %src\distrib\msw\extradoc.rsp
46f5ad7d
JS
104
105rem VC++ project files
106zip32 -@ %dest\wxWindows-%version%-vc.zip < %src\distrib\msw\vc.rsp
107
108rem BC++ project files
109zip32 -@ %dest\wxWindows-%version%-bc.zip < %src\distrib\msw\bc.rsp
110
111rem CodeWarrior project files
112zip32 -@ %dest\wxWindows-%version%-cw.zip < %src\distrib\msw\cw.rsp
113
114rem OGL 3
940718f0 115zip32 -@ %dest\ogl3-%version%.zip < %src\distrib\msw\ogl.rsp
46f5ad7d
JS
116
117rem MMedia
940718f0 118zip32 -@ %dest\mmedia-%version%.zip < %src\distrib\msw\mmedia.rsp
46f5ad7d
JS
119
120rem STC (Scintilla widget)
940718f0 121zip32 -@ %dest\stc-%version%.zip < %src\distrib\msw\stc.rsp
46f5ad7d
JS
122
123rem GLCanvas: obsolete, now in main library
124rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
125
126rem Tex2RTF
940718f0 127zip32 -@ %dest\tex2rtf2-%version%.zip < %src\distrib\msw\tex2rtf.rsp
46f5ad7d
JS
128
129rem JPEG source
940718f0 130zip32 -@ %dest\jpeg-%version%.zip < %src\distrib\msw\jpeg.rsp
46f5ad7d
JS
131
132rem TIFF source
940718f0 133zip32 -@ %dest\tiff-%version%.zip < %src\distrib\msw\tiff.rsp
46f5ad7d 134
b9e5acef 135zip32 -@ %dest\wxxrc-%version%.zip < %src\distrib\msw\xml.rsp
e74a9319 136
940718f0 137zip32 -@ %dest\contrib-%version%.zip < %src\distrib\msw\contrib.rsp
c60f5c65 138
46f5ad7d
JS
139rem Dialog Editor source and binary
140erase %dest\dialoged_source.zip
141zip32 -@ %dest\dialoged_source.zip < %src\distrib\msw\dialoged.rsp
940718f0 142zip32 -j %dest\dialoged-%version%.zip %dest\dialoged_source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt
46f5ad7d
JS
143erase %dest\dialoged_source.zip
144
145rem Misc. utils not in the main distribution
940718f0
JS
146zip32 -@ %dest\utils-%version%.zip < %src\distrib\msw\utils.rsp
147zip32 -@ -u %dest\utils-%version%.zip < %src\distrib\msw\utilmake.rsp
148
149copy %src\docs\changes.txt %dest\changes-%version%.txt
150copy %src\docs\msw\install.txt %dest\install_msw-%version%.txt
151copy %src\docs\mac\install.txt %dest\install_mac-%version%.txt
152copy %src\docs\motif\install.txt %dest\install_motif-%version%.txt
153copy %src\docs\gtk\install.txt %dest\install_gtk-%version%.txt
154copy %src\docs\readme.txt %dest\readme-%version%.txt
059f0565 155copy %src\docs\motif\readme.txt %dest\readme_motif-%version%.txt
940718f0
JS
156copy %src\docs\gtk\readme.txt %dest\readme_gtk-%version%.txt
157copy %src\docs\msw\readme.txt %dest\readme_msw-%version%.txt
158copy %src\docs\mac\readme.txt %dest\readme_mac-%version%.txt
159copy %src\docs\readme_vms.txt %dest\readme_vms-%version%.txt
160copy %src\docs\motif\makewxmotif %dest\makewxmotif-%version%
161copy %src\docs\gtk\makewxgtk %dest\makewxgtk-%version%
46f5ad7d
JS
162
163Rem Skip Inno Setup if inno is 0.
164if "%inno" == "0" goto end
165
166:dounzip
167
168Rem Make dialoged-win32.zip and tex2rtf-win32.zip
169
170cd %src\bin
171
940718f0
JS
172zip32 %dest\dialoged-win32-%version%.zip dialoged.*
173zip32 %dest\tex2rtf-win32-%version%.zip tex2rtf.*
46f5ad7d
JS
174
175cd %dest
176
177rem Unzip the Windows files into 'wx'
178mkdir %dest\wx
179
180Rem After this change of directory, we're in the
181Rem temporary 'wx' directory and not acting on
182Rem the source wxWindows directory.
183cd %dest\wx
184unzip32 -o ..\wxWindows-%version%-msw.zip
185unzip32 -o ..\wxWindows-%version%-gen.zip
186unzip32 -o ..\wxWindows-%version%-vc.zip
187unzip32 -o ..\wxWindows-%version%-bc.zip
188unzip32 -o ..\wxWindows-%version%-HTMLHelp.zip
940718f0 189unzip32 -o ..\extradoc-%version%.zip
46f5ad7d
JS
190Rem Need Word file, for Remstar DB classes
191unzip32 -o ..\wxWindows-%version%-Word.zip
940718f0 192unzip32 -o ..\ogl3-%version%.zip
35820dcb
JS
193unzip32 -o ..\mmedia-%version%.zip
194unzip32 -o ..\stc-%version%.zip
940718f0
JS
195unzip32 -o ..\jpeg-%version%.zip
196unzip32 -o ..\tiff-%version%.zip
b9e5acef 197unzip32 -o ..\wxxrc-%version%.zip
940718f0
JS
198unzip32 -o ..\contrib-%version%.zip
199unzip32 -o ..\tex2rtf2-%version%.zip
46f5ad7d
JS
200
201rem Now delete a few files that are unnecessary
202attrib -R *
203erase /Y BuildCVS.txt *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh descrip.mms
204erase /Y configure samples\configure samples\*.in demos\configure demos\*.in contrib\configure contrib\*.in
205erase /Y setup.h.in setup.h_vms
206erase /SY Makefile.in
207erase /Y docs\html\wxbook.htm docs\html\roadmap.htm
35820dcb
JS
208Rem erase /Y contrib\docs\winhelp\mmedia.*
209Rem erase /Y contrib\docs\winhelp\stc.*
210Rem erase /Y contrib\docs\htmlhelp\mmedia.*
211Rem erase /Y contrib\docs\htmlhelp\stc.*
212Rem erase /Y contrib\docs\pdf\*.*
46f5ad7d
JS
213erase /sxzy contrib\docs\latex\ogl
214erase /Y src\mingegcs.bat
215erase /Y distrib
216
217rem Now copy some binary files to 'bin'
218if not isdir bin mkdir bin
219copy %src\bin\dialoged.exe bin
220copy %src\bin\tex2rtf.exe bin
221copy %src\bin\dbgview.* bin
222copy %src\bin\life.exe bin
223copy %src\demos\life\breeder.lif bin
224copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
225copy %src\docs\winhelp\tex2rtf.hlp %src\docs\winhelp\tex2rtf.cnt bin
226
227Rem Make wxMSW-xxx.zip
228zip32 -r ..\wxMSW-%version%.zip *
229
230rem Time to regenerate the Inno Setup script, wxwin2.iss.
231rem NB: if you've changed wxwin2.iss using ScriptMaker, call splitinno.exe
232rem from within distrib\msw, to split off innotop.txt and innobott.txt.
233rem (NOT YET IMPLEMENTED)
234echo Calling 'makeinno' to generate wxwin2.iss...
235call %WXWIN\distrib\msw\makeinno.bat
236
237erase /Y %dest\setup.*
238
239rem Now invoke Inno Setup on the new wxwin2.iss
240set innocmd="C:\Program Files\Inno Setup 1.3\compil32.exe" /cc %WXWIN\distrib\msw\wxwin2.iss
241echo Invoking %innocmd...
242start "Inno Setup" /w %innocmd%
243pause Press any key to continue with the wxWindows distribution...
244Rem ren %WXWIN\deliver2\setup.EXE %WXWIN\deliver2\wxMSW-%version%-setup.exe
245
246:tidyup
247cd %dest
248
249rem Put all the setup files into a single zip archive.
059f0565 250zip32 wxMSW-%version%-setup.zip readme-%version%.txt setup.*
46f5ad7d
JS
251
252echo wxWindows archived.
253
254goto end
255
256:usage
257echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files,
258echo and optionally makes a deliver2\wx directory and a setup.exe
259echo if you specify 'inno' (skipping the zipping if you use 'innoonly').
260echo.
261echo "Usage: zipdist [inno | innoonly]"
262
263:end