]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdist.bat
compilation fix
[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
JS
4set dest=%src\deliver
5if "%src" == "" goto usage
6if "%dest" == "" goto usage
457814b5 7echo About to archive an external wxWindows distribution:
bbcdf8bc 8echo From %src
589f0e3e 9echo To %dest
457814b5
JS
10echo CTRL-C if this is not correct.
11pause
12
07e63290
JS
13rem goto dounzip
14
bbcdf8bc 15erase %dest\wx200*.zip
06ad8636
JS
16erase %dest\glcanvas.zip
17erase %dest\ogl3.zip
18erase %dest\tex2rtf2.zip
794005c0 19erase %dest\jpeg.zip
457814b5 20
07e63290
JS
21if direxist %dest\wx deltree /Y %dest\wx
22
bbcdf8bc 23cd %src
457814b5 24echo Zipping...
88150e60 25
bbcdf8bc 26zip32 -@ %dest\wx200gen.zip < %src\distrib\msw\generic.rsp
d66d9d5b 27zip32 -@ -u %dest\wx200gen.zip < %src\distrib\msw\makefile.rsp
bbcdf8bc 28zip32 -@ %dest\wx200msw.zip < %src\distrib\msw\msw.rsp
d66d9d5b 29zip32 -@ -u %dest\wx200msw.zip < %src\distrib\msw\makefile.rsp
bbcdf8bc 30zip32 -@ %dest\wx200gtk.zip < %src\distrib\msw\gtk.rsp
d66d9d5b 31zip32 -@ -u %dest\wx200gtk.zip < %src\distrib\msw\makefile.rsp
72212c28 32zip32 -@ %dest\wx200stubs.zip < %src\distrib\msw\stubs.rsp
589f0e3e 33zip32 -@ %dest\wx200mot.zip < %src\distrib\msw\motif.rsp
d66d9d5b 34zip32 -@ -u %dest\wx200mot.zip < %src\distrib\msw\makefile.rsp
06ad8636 35zip32 -@ %dest\wx200user.zip < %src\distrib\msw\user.rsp
457814b5 36
06ad8636 37zip32 -@ %dest\wx200doc.zip < %src\distrib\msw\docsrc.rsp
bbcdf8bc
JS
38zip32 -@ %dest\wx200hlp.zip < %src\distrib\msw\wx_hlp.rsp
39zip32 -@ %dest\wx200htm.zip < %src\distrib\msw\wx_html.rsp
40zip32 -@ %dest\wx200pdf.zip < %src\distrib\msw\wx_pdf.rsp
2b556e9a 41zip32 -@ %dest\wx200wrd.zip < %src\distrib\msw\wx_word.rsp
457814b5 42
754330c0 43rem VC++ project files
a367b9b3 44zip32 -@ %dest\wx200vc.zip < %src\distrib\msw\vc.rsp
88150e60 45
ca5c8b2d
JS
46rem BC++ project files
47zip32 -@ %dest\wx200bc.zip < %src\distrib\msw\bc.rsp
48
754330c0
JS
49rem CodeWarrior project files
50zip32 -@ %dest\wx200cw.zip < %src\distrib\msw\cw.rsp
a367b9b3 51
9838df2c 52rem OGL 3
08853b68 53zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
3dd4e4e0 54
9838df2c 55rem GLCanvas
08853b68 56zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
9838df2c 57
9a29912f 58rem Tex2RTF
3d05544e 59zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp
9a29912f 60
574c0bbf
JS
61rem wxTreeLayout
62zip32 -@ %dest\treedraw.zip < %src\distrib\msw\wxtree.rsp
63
794005c0
JS
64rem JPEG source
65zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp
66
ad5c34f3
JS
67copy %src\docs\changes.txt %dest
68copy %src\docs\msw\install.txt %dest\install_msw.txt
69copy %src\docs\motif\install.txt %dest\install_motif.txt
70copy %src\docs\gtk\install.txt %dest\install_gtk.txt
71copy %src\docs\readme.txt %dest
c7f49969
JS
72copy %src\docs\motif\makewxmotif %dest
73copy %src\docs\gtk\makewxgtk %dest
ad5c34f3 74
07e63290
JS
75:dounzip
76
77cd %dest
78
79rem Unzip the Windows files into 'wx'
80mkdir %dest\wx
81
82Rem After this change of directory, we're in the
83Rem temporary 'wx' directory and not acting on
84Rem the source wxWindows directory.
85cd %dest\wx
86unzip32 -o ..\wx200msw.zip
87unzip32 -o ..\wx200gen.zip
88unzip32 -o ..\wx200vc.zip
4d85bcd1 89unzip32 -o ..\wx200bc.zip
07e63290
JS
90unzip32 -o ..\wx200hlp.zip
91unzip32 -o ..\glcanvas.zip
92unzip32 -o ..\treedraw.zip
93unzip32 -o ..\ogl3.zip
94unzip32 -o ..\jpeg.zip
95
96rem unzip32 -o ..\wx200doc.zip
97rem unzip32 -o ..\wx200bc.zip
98rem unzip32 -o ..\wx200cw.zip
99
100rem Now delete a few files that are unnecessary
101erase /Y *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh
102erase /SY Makefile.in
103erase /Y docs\pdf\ogl.pdf
104deltree /Y docs\html\ogl
105
106rem Now copy some binary files to 'bin'
107if not isdir bin mkdir bin
108copy %src\bin\dialoged.exe bin
109copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
110
111rem Time to regenerate the WISE install script, wxwin2.wse.
112rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
113rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
114echo Calling 'makewise' to generate wxwin2.wse...
115call %WXWIN\distrib\msw\makewise.bat
116
117rem Now invoke WISE install on the new wxwin2.wse
118set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse
119echo Invoking %wisecmd...
120start /w %wisecmd
121
bbcdf8bc 122cd %dest
457814b5
JS
123
124echo wxWindows archived.
125goto end
126
127:usage
128echo DOS wxWindows distribution.
884360bc
JS
129echo Usage: zipdist source destination
130echo e.g. zipdist d:\wx2\wxWindows d:\wx2\wxWindows\deliver
457814b5
JS
131
132:end