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