]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdist.bat
SetBrushOrgExt broke WIN16 compilation
[wxWidgets.git] / distrib / msw / zipdist.bat
CommitLineData
457814b5
JS
1@echo off
2rem Zip up an external, generic + Windows distribution of wxWindows 2.0
706bb5f9 3set src=%wxwin
bbcdf8bc 4set dest=%src\deliver
af111fc3 5set wise=0
7f24fdbf
JS
6
7Rem Set this to the required version
5fa399c9 8set version=2_1_14
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
06ad8636
JS
25erase %dest\ogl3.zip
26erase %dest\tex2rtf2.zip
794005c0 27erase %dest\jpeg.zip
ccebc98a 28erase %dest\tiff.zip
281b0186 29erase %dest\dialoged.zip
0a0352f2 30erase %dest\utils.zip
457814b5 31
07e63290
JS
32if direxist %dest\wx deltree /Y %dest\wx
33
bbcdf8bc 34cd %src
457814b5 35echo Zipping...
88150e60 36
7f24fdbf
JS
37zip32 -@ %dest\wx%version%_gen.zip < %src\distrib\msw\generic.rsp
38zip32 -@ -u %dest\wx%version%_gen.zip < %src\distrib\msw\makefile.rsp
39zip32 -@ %dest\wx%version%_msw.zip < %src\distrib\msw\msw.rsp
40zip32 -@ -u %dest\wx%version%_msw.zip < %src\distrib\msw\makefile.rsp
41zip32 -@ %dest\wx%version%_gtk.zip < %src\distrib\msw\gtk.rsp
42zip32 -@ -u %dest\wx%version%_gtk.zip < %src\distrib\msw\makefile.rsp
43zip32 -@ %dest\wx%version%_stubs.zip < %src\distrib\msw\stubs.rsp
44zip32 -@ %dest\wx%version%_mot.zip < %src\distrib\msw\motif.rsp
45zip32 -@ -u %dest\wx%version%_mot.zip < %src\distrib\msw\makefile.rsp
9bb3479c 46Rem (Obsolete) zip32 -@ %dest\wx%version%_user.zip < %src\distrib\msw\user.rsp
7f24fdbf
JS
47
48zip32 -@ %dest\wx%version%_doc.zip < %src\distrib\msw\docsrc.rsp
49zip32 -@ %dest\wx%version%_hlp.zip < %src\distrib\msw\wx_hlp.rsp
50zip32 -@ %dest\wx%version%_htm.zip < %src\distrib\msw\wx_html.rsp
51zip32 -@ %dest\wx%version%_pdf.zip < %src\distrib\msw\wx_pdf.rsp
52zip32 -@ %dest\wx%version%_wrd.zip < %src\distrib\msw\wx_word.rsp
457814b5 53
754330c0 54rem VC++ project files
7f24fdbf 55zip32 -@ %dest\wx%version%_vc.zip < %src\distrib\msw\vc.rsp
88150e60 56
ca5c8b2d 57rem BC++ project files
7f24fdbf 58zip32 -@ %dest\wx%version%_bc.zip < %src\distrib\msw\bc.rsp
ca5c8b2d 59
754330c0 60rem CodeWarrior project files
7f24fdbf 61zip32 -@ %dest\wx%version%_cw.zip < %src\distrib\msw\cw.rsp
a367b9b3 62
9838df2c 63rem OGL 3
08853b68 64zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
3dd4e4e0 65
5d525ad9
JS
66rem MMedia
67zip32 -@ %dest\mmedia.zip < %src\distrib\msw\mmedia.rsp
68
53adbc34
JS
69rem STC (Scintilla widget)
70zip32 -@ %dest\stc.zip < %src\distrib\msw\stc.rsp
71
babc9758
JS
72rem GLCanvas: obsolete, now in main library
73rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
9838df2c 74
9a29912f 75rem Tex2RTF
3d05544e 76zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp
9a29912f 77
794005c0
JS
78rem JPEG source
79zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp
80
ccebc98a
JS
81rem TIFF source
82zip32 -@ %dest\tiff.zip < %src\distrib\msw\tiff.rsp
83
281b0186
JS
84rem Dialog Editor source and binary
85erase %dest\dialoged_source.zip
86zip32 -@ %dest\dialoged_source.zip < %src\distrib\msw\dialoged.rsp
87zip32 -j %dest\dialoged.zip %dest\dialoged_source.zip %src\bin\dialoged.exe %src\bin\dialoged.hlp %src\bin\dialoged.cnt
88erase %dest\dialoged_source.zip
89
0a0352f2
JS
90rem Misc. utils not in the main distribution
91zip32 -@ %dest\utils.zip < %src\distrib\msw\utils.rsp
92zip32 -@ -u %dest\utils.zip < %src\distrib\msw\utilmake.rsp
93
ad5c34f3
JS
94copy %src\docs\changes.txt %dest
95copy %src\docs\msw\install.txt %dest\install_msw.txt
96copy %src\docs\motif\install.txt %dest\install_motif.txt
97copy %src\docs\gtk\install.txt %dest\install_gtk.txt
98copy %src\docs\readme.txt %dest
a925b006 99copy %src\docs\release.txt %dest
c7f49969
JS
100copy %src\docs\motif\makewxmotif %dest
101copy %src\docs\gtk\makewxgtk %dest
ad5c34f3 102
a925b006
JS
103Rem Skip WISE setup if wise is 0.
104if "%wise" == "0" goto end
105
07e63290
JS
106:dounzip
107
108cd %dest
109
110rem Unzip the Windows files into 'wx'
111mkdir %dest\wx
112
113Rem After this change of directory, we're in the
114Rem temporary 'wx' directory and not acting on
115Rem the source wxWindows directory.
116cd %dest\wx
7f24fdbf
JS
117unzip32 -o ..\wx%version%_msw.zip
118unzip32 -o ..\wx%version%_gen.zip
119unzip32 -o ..\wx%version%_vc.zip
120unzip32 -o ..\wx%version%_bc.zip
121unzip32 -o ..\wx%version%_hlp.zip
733dac47 122Rem Need Word file, for Remstar DB classes
7f24fdbf 123unzip32 -o ..\wx%version%_wrd.zip
07e63290
JS
124unzip32 -o ..\ogl3.zip
125unzip32 -o ..\jpeg.zip
ccebc98a 126unzip32 -o ..\tiff.zip
17d8ee1c 127unzip32 -o ..\tex2rtf2.zip
07e63290 128
07e63290 129rem Now delete a few files that are unnecessary
a19762cf
JS
130attrib -R *
131erase /Y BuildCVS.txt *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh descrip.mms
53adbc34 132erase /Y configure samples\configure samples\*.in demos\configure demos\*.in contrib\configure contrib\*.in
a19762cf 133erase /Y setup.h.in setup.h_vms
07e63290 134erase /SY Makefile.in
01dba85a
JS
135rem erase /Y docs\pdf\ogl.pdf
136rem deltree /Y docs\html\ogl
07e63290
JS
137
138rem Now copy some binary files to 'bin'
139if not isdir bin mkdir bin
140copy %src\bin\dialoged.exe bin
9c6751aa
JS
141copy %src\bin\dbgview.* bin
142copy %src\bin\life.exe bin
07e63290
JS
143copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
144
145rem Time to regenerate the WISE install script, wxwin2.wse.
146rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
147rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
148echo Calling 'makewise' to generate wxwin2.wse...
149call %WXWIN\distrib\msw\makewise.bat
150
a19762cf 151erase /Y %dest\setup.*
b40b0f5b 152
07e63290
JS
153rem Now invoke WISE install on the new wxwin2.wse
154set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse
155echo Invoking %wisecmd...
0a0352f2
JS
156start %wisecmd
157pause Press any key to continue with the wxWindows distribution...
6e47faf1 158Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\setup_%version%.exe
07e63290 159
bbcdf8bc 160cd %dest
457814b5 161
a925b006
JS
162Rem tidy up capitalisation of filenames
163ren setup.EXE s
164ren s setup.exe
165
166ren setup.w02 s
167ren s setup.w02
168
169ren setup.w03 s
170ren s setup.w03
171
172ren setup.w04 s
173ren s setup.w04
174
175ren setup.w05 s
176ren s setup.w05
177
178ren setup.w06 s
179ren s setup.w06
180
a19762cf
JS
181ren setup.w07 s
182ren s setup.w07
183
b40b0f5b 184rem Put all the setup files into a single zip archive.
ccebc98a 185zip32 wx%version%_setup.zip readme.txt setup.*
b40b0f5b 186
457814b5 187echo wxWindows archived.
a925b006 188
457814b5
JS
189goto end
190
191:usage
af111fc3
JS
192echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files,
193echo and optionally makes a deliver\wx directory and a setup.exe
a925b006 194echo if you specify 'wise' (skipping the zipping if you use 'wiseonly').
af111fc3 195echo.
a925b006 196echo Usage: zipdist [wise | wiseonly]
457814b5
JS
197
198:end