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