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