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