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