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