]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdist.bat
Cygwin 1.1 mods (main branch)
[wxWidgets.git] / distrib / msw / zipdist.bat
CommitLineData
457814b5 1@echo off
f6bcfd97 2rem Zip up an external, generic + Windows distribution of wxWindows 2
706bb5f9 3set src=%wxwin
bbcdf8bc 4set dest=%src\deliver
af111fc3 5set wise=0
7f24fdbf
JS
6
7Rem Set this to the required version
f6bcfd97 8set version=2.2.0
7f24fdbf 9
bbcdf8bc
JS
10if "%src" == "" goto usage
11if "%dest" == "" goto usage
af111fc3
JS
12if "%1" == "-help" goto usage
13if "%1" == "--help" goto usage
14if "%1" == "/?" goto usage
a925b006 15if "%1" == "wiseonly" goto dounzip
af111fc3 16if "%1" == "wise" set wise=1
457814b5 17echo About to archive an external wxWindows distribution:
bbcdf8bc 18echo From %src
589f0e3e 19echo To %dest
af111fc3 20if "%wise" == "1" echo with WISE setup creation.
457814b5
JS
21echo CTRL-C if this is not correct.
22pause
23
7f24fdbf 24erase %dest\wx*.zip
f6bcfd97 25erase %dest\*.htb
06ad8636
JS
26erase %dest\ogl3.zip
27erase %dest\tex2rtf2.zip
794005c0 28erase %dest\jpeg.zip
ccebc98a 29erase %dest\tiff.zip
281b0186 30erase %dest\dialoged.zip
0a0352f2 31erase %dest\utils.zip
f47cd02d 32erase %dest\extradoc.zip
f6bcfd97 33erase %dest\*-win32.zip
457814b5 34
07e63290
JS
35if direxist %dest\wx deltree /Y %dest\wx
36
bbcdf8bc 37cd %src
457814b5 38echo Zipping...
88150e60 39
f6bcfd97
BP
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
457814b5 69
f47cd02d
JS
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
754330c0 74rem VC++ project files
f6bcfd97 75zip32 -@ %dest\wxWindows-%version%-vc.zip < %src\distrib\msw\vc.rsp
88150e60 76
ca5c8b2d 77rem BC++ project files
f6bcfd97 78zip32 -@ %dest\wxWindows-%version%-bc.zip < %src\distrib\msw\bc.rsp
ca5c8b2d 79
754330c0 80rem CodeWarrior project files
f6bcfd97 81zip32 -@ %dest\wxWindows-%version%-cw.zip < %src\distrib\msw\cw.rsp
a367b9b3 82
9838df2c 83rem OGL 3
08853b68 84zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
3dd4e4e0 85
5d525ad9
JS
86rem MMedia
87zip32 -@ %dest\mmedia.zip < %src\distrib\msw\mmedia.rsp
88
53adbc34
JS
89rem STC (Scintilla widget)
90zip32 -@ %dest\stc.zip < %src\distrib\msw\stc.rsp
91
babc9758
JS
92rem GLCanvas: obsolete, now in main library
93rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
9838df2c 94
9a29912f 95rem Tex2RTF
3d05544e 96zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp
9a29912f 97
794005c0
JS
98rem JPEG source
99zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp
100
ccebc98a
JS
101rem TIFF source
102zip32 -@ %dest\tiff.zip < %src\distrib\msw\tiff.rsp
103
281b0186
JS
104rem Dialog Editor source and binary
105erase %dest\dialoged_source.zip
106zip32 -@ %dest\dialoged_source.zip < %src\distrib\msw\dialoged.rsp
fbdcff4a 107zip32 -j %dest\dialoged.zip %dest\dialoged_source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt
281b0186
JS
108erase %dest\dialoged_source.zip
109
0a0352f2
JS
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
ad5c34f3
JS
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
f6bcfd97
BP
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
c7f49969
JS
123copy %src\docs\motif\makewxmotif %dest
124copy %src\docs\gtk\makewxgtk %dest
ad5c34f3 125
a925b006
JS
126Rem Skip WISE setup if wise is 0.
127if "%wise" == "0" goto end
128
07e63290
JS
129:dounzip
130
f6bcfd97
BP
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
07e63290
JS
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
f6bcfd97
BP
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
f47cd02d 152unzip32 -o ..\extradoc.zip
733dac47 153Rem Need Word file, for Remstar DB classes
f6bcfd97 154unzip32 -o ..\wxWindows-%version%-Word.zip
07e63290
JS
155unzip32 -o ..\ogl3.zip
156unzip32 -o ..\jpeg.zip
ccebc98a 157unzip32 -o ..\tiff.zip
17d8ee1c 158unzip32 -o ..\tex2rtf2.zip
07e63290 159
07e63290 160rem Now delete a few files that are unnecessary
a19762cf
JS
161attrib -R *
162erase /Y BuildCVS.txt *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh descrip.mms
53adbc34 163erase /Y configure samples\configure samples\*.in demos\configure demos\*.in contrib\configure contrib\*.in
a19762cf 164erase /Y setup.h.in setup.h_vms
07e63290 165erase /SY Makefile.in
f47cd02d
JS
166erase /Y docs\html\wxbook.htm docs\html\roadmap.htm
167erase /Y contrib\docs\winhelp\mmedia.*
168erase /Y contrib\docs\winhelp\stc.*
f6bcfd97
BP
169erase /Y contrib\docs\htmlhelp\mmedia.*
170erase /Y contrib\docs\htmlhelp\stc.*
f47cd02d
JS
171erase /Y contrib\docs\pdf\*.*
172deltree /Y contrib\docs\latex\ogl
fbdcff4a 173erase /Y src\mingegcs.bat
f6bcfd97 174erase /Y distrib
07e63290
JS
175
176rem Now copy some binary files to 'bin'
177if not isdir bin mkdir bin
178copy %src\bin\dialoged.exe bin
f47cd02d 179copy %src\bin\tex2rtf.exe bin
9c6751aa
JS
180copy %src\bin\dbgview.* bin
181copy %src\bin\life.exe bin
07e63290 182copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
f47cd02d 183copy %src\docs\winhelp\tex2rtf.hlp %src\docs\winhelp\tex2rtf.cnt bin
07e63290 184
f6bcfd97
BP
185Rem Make wxMSW-xxx.zip
186zip32 -r ..\wxMSW-%version%.zip *
187
07e63290
JS
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
a19762cf 194erase /Y %dest\setup.*
b40b0f5b 195
07e63290
JS
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...
0a0352f2
JS
199start %wisecmd
200pause Press any key to continue with the wxWindows distribution...
f6bcfd97 201Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\wxMSW-%version%-setup.exe
07e63290 202
bbcdf8bc 203cd %dest
457814b5 204
a925b006
JS
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
a19762cf
JS
224ren setup.w07 s
225ren s setup.w07
226
f6bcfd97
BP
227ren setup.w08 s
228ren s setup.w08
229
b40b0f5b 230rem Put all the setup files into a single zip archive.
f6bcfd97 231zip32 wxMSW-%version%-setup.zip readme.txt setup.*
b40b0f5b 232
457814b5 233echo wxWindows archived.
a925b006 234
457814b5
JS
235goto end
236
237:usage
af111fc3
JS
238echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files,
239echo and optionally makes a deliver\wx directory and a setup.exe
a925b006 240echo if you specify 'wise' (skipping the zipping if you use 'wiseonly').
af111fc3 241echo.
a925b006 242echo Usage: zipdist [wise | wiseonly]
457814b5
JS
243
244:end