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