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