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