]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdist.bat
wxLocale now uses wxEncodingConverter (must be explicitly enabled)
[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
8set version=2_1_11
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\glcanvas.zip
26erase %dest\ogl3.zip
27erase %dest\tex2rtf2.zip
794005c0 28erase %dest\jpeg.zip
457814b5 29
07e63290
JS
30if direxist %dest\wx deltree /Y %dest\wx
31
bbcdf8bc 32cd %src
457814b5 33echo Zipping...
88150e60 34
7f24fdbf
JS
35zip32 -@ %dest\wx%version%_gen.zip < %src\distrib\msw\generic.rsp
36zip32 -@ -u %dest\wx%version%_gen.zip < %src\distrib\msw\makefile.rsp
37zip32 -@ %dest\wx%version%_msw.zip < %src\distrib\msw\msw.rsp
38zip32 -@ -u %dest\wx%version%_msw.zip < %src\distrib\msw\makefile.rsp
39zip32 -@ %dest\wx%version%_gtk.zip < %src\distrib\msw\gtk.rsp
40zip32 -@ -u %dest\wx%version%_gtk.zip < %src\distrib\msw\makefile.rsp
41zip32 -@ %dest\wx%version%_stubs.zip < %src\distrib\msw\stubs.rsp
42zip32 -@ %dest\wx%version%_mot.zip < %src\distrib\msw\motif.rsp
43zip32 -@ -u %dest\wx%version%_mot.zip < %src\distrib\msw\makefile.rsp
44zip32 -@ %dest\wx%version%_user.zip < %src\distrib\msw\user.rsp
45
46zip32 -@ %dest\wx%version%_doc.zip < %src\distrib\msw\docsrc.rsp
47zip32 -@ %dest\wx%version%_hlp.zip < %src\distrib\msw\wx_hlp.rsp
48zip32 -@ %dest\wx%version%_htm.zip < %src\distrib\msw\wx_html.rsp
49zip32 -@ %dest\wx%version%_pdf.zip < %src\distrib\msw\wx_pdf.rsp
50zip32 -@ %dest\wx%version%_wrd.zip < %src\distrib\msw\wx_word.rsp
457814b5 51
754330c0 52rem VC++ project files
7f24fdbf 53zip32 -@ %dest\wx%version%_vc.zip < %src\distrib\msw\vc.rsp
88150e60 54
ca5c8b2d 55rem BC++ project files
7f24fdbf 56zip32 -@ %dest\wx%version%_bc.zip < %src\distrib\msw\bc.rsp
ca5c8b2d 57
754330c0 58rem CodeWarrior project files
7f24fdbf 59zip32 -@ %dest\wx%version%_cw.zip < %src\distrib\msw\cw.rsp
a367b9b3 60
9838df2c 61rem OGL 3
08853b68 62zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
3dd4e4e0 63
9838df2c 64rem GLCanvas
08853b68 65zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
9838df2c 66
9a29912f 67rem Tex2RTF
3d05544e 68zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp
9a29912f 69
574c0bbf
JS
70rem wxTreeLayout
71zip32 -@ %dest\treedraw.zip < %src\distrib\msw\wxtree.rsp
72
794005c0
JS
73rem JPEG source
74zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp
75
ad5c34f3
JS
76copy %src\docs\changes.txt %dest
77copy %src\docs\msw\install.txt %dest\install_msw.txt
78copy %src\docs\motif\install.txt %dest\install_motif.txt
79copy %src\docs\gtk\install.txt %dest\install_gtk.txt
80copy %src\docs\readme.txt %dest
a925b006 81copy %src\docs\release.txt %dest
c7f49969
JS
82copy %src\docs\motif\makewxmotif %dest
83copy %src\docs\gtk\makewxgtk %dest
ad5c34f3 84
a925b006
JS
85Rem Skip WISE setup if wise is 0.
86if "%wise" == "0" goto end
87
07e63290
JS
88:dounzip
89
90cd %dest
91
92rem Unzip the Windows files into 'wx'
93mkdir %dest\wx
94
95Rem After this change of directory, we're in the
96Rem temporary 'wx' directory and not acting on
97Rem the source wxWindows directory.
98cd %dest\wx
7f24fdbf
JS
99unzip32 -o ..\wx%version%_msw.zip
100unzip32 -o ..\wx%version%_gen.zip
101unzip32 -o ..\wx%version%_vc.zip
102unzip32 -o ..\wx%version%_bc.zip
103unzip32 -o ..\wx%version%_hlp.zip
733dac47 104Rem Need Word file, for Remstar DB classes
7f24fdbf 105unzip32 -o ..\wx%version%_wrd.zip
07e63290
JS
106unzip32 -o ..\glcanvas.zip
107unzip32 -o ..\treedraw.zip
108unzip32 -o ..\ogl3.zip
109unzip32 -o ..\jpeg.zip
17d8ee1c 110unzip32 -o ..\tex2rtf2.zip
07e63290 111
07e63290
JS
112rem Now delete a few files that are unnecessary
113erase /Y *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh
114erase /SY Makefile.in
01dba85a
JS
115rem erase /Y docs\pdf\ogl.pdf
116rem deltree /Y docs\html\ogl
07e63290
JS
117
118rem Now copy some binary files to 'bin'
119if not isdir bin mkdir bin
120copy %src\bin\dialoged.exe bin
121copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
122
123rem Time to regenerate the WISE install script, wxwin2.wse.
124rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
125rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
126echo Calling 'makewise' to generate wxwin2.wse...
127call %WXWIN\distrib\msw\makewise.bat
128
b40b0f5b
JS
129erase /Y setup.*
130
07e63290
JS
131rem Now invoke WISE install on the new wxwin2.wse
132set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse
133echo Invoking %wisecmd...
134start /w %wisecmd
6e47faf1 135Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\setup_%version%.exe
07e63290 136
bbcdf8bc 137cd %dest
457814b5 138
a925b006
JS
139Rem tidy up capitalisation of filenames
140ren setup.EXE s
141ren s setup.exe
142
143ren setup.w02 s
144ren s setup.w02
145
146ren setup.w03 s
147ren s setup.w03
148
149ren setup.w04 s
150ren s setup.w04
151
152ren setup.w05 s
153ren s setup.w05
154
155ren setup.w06 s
156ren s setup.w06
157
b40b0f5b
JS
158rem Put all the setup files into a single zip archive.
159zip32 setup.zip readme.txt setup.*
160
457814b5 161echo wxWindows archived.
a925b006 162
457814b5
JS
163goto end
164
165:usage
af111fc3
JS
166echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files,
167echo and optionally makes a deliver\wx directory and a setup.exe
a925b006 168echo if you specify 'wise' (skipping the zipping if you use 'wiseonly').
af111fc3 169echo.
a925b006 170echo Usage: zipdist [wise | wiseonly]
457814b5
JS
171
172:end