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