]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/msw/zipdist.bat
Some corrections
[wxWidgets.git] / distrib / msw / zipdist.bat
... / ...
CommitLineData
1@echo off
2rem Zip up an external, generic + Windows distribution of wxWindows 2.0
3set src=%wxwin
4set dest=%src\deliver
5set wise=0
6
7Rem Set this to the required version
8set version=2_1_13
9
10if "%src" == "" goto usage
11if "%dest" == "" goto usage
12if "%1" == "-help" goto usage
13if "%1" == "--help" goto usage
14if "%1" == "/?" goto usage
15if "%1" == "wiseonly" goto dounzip
16if "%1" == "wise" set wise=1
17echo About to archive an external wxWindows distribution:
18echo From %src
19echo To %dest
20if "%wise" == "1" echo with WISE setup creation.
21echo CTRL-C if this is not correct.
22pause
23
24erase %dest\wx*.zip
25erase %dest\ogl3.zip
26erase %dest\tex2rtf2.zip
27erase %dest\jpeg.zip
28erase %dest\tiff.zip
29
30if direxist %dest\wx deltree /Y %dest\wx
31
32cd %src
33echo Zipping...
34
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
44Rem (Obsolete) zip32 -@ %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
51
52rem VC++ project files
53zip32 -@ %dest\wx%version%_vc.zip < %src\distrib\msw\vc.rsp
54
55rem BC++ project files
56zip32 -@ %dest\wx%version%_bc.zip < %src\distrib\msw\bc.rsp
57
58rem CodeWarrior project files
59zip32 -@ %dest\wx%version%_cw.zip < %src\distrib\msw\cw.rsp
60
61rem OGL 3
62zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
63
64rem GLCanvas: obsolete, now in main library
65rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
66
67rem Tex2RTF
68zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp
69
70rem JPEG source
71zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp
72
73rem TIFF source
74zip32 -@ %dest\tiff.zip < %src\distrib\msw\tiff.rsp
75
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
81copy %src\docs\release.txt %dest
82copy %src\docs\motif\makewxmotif %dest
83copy %src\docs\gtk\makewxgtk %dest
84
85Rem Skip WISE setup if wise is 0.
86if "%wise" == "0" goto end
87
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
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
104Rem Need Word file, for Remstar DB classes
105unzip32 -o ..\wx%version%_wrd.zip
106unzip32 -o ..\ogl3.zip
107unzip32 -o ..\jpeg.zip
108unzip32 -o ..\tiff.zip
109unzip32 -o ..\tex2rtf2.zip
110
111rem Now delete a few files that are unnecessary
112attrib -R *
113erase /Y BuildCVS.txt *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh descrip.mms
114erase /Y setup.h.in setup.h_vms
115erase /SY Makefile.in
116rem erase /Y docs\pdf\ogl.pdf
117rem deltree /Y docs\html\ogl
118
119rem Now copy some binary files to 'bin'
120if not isdir bin mkdir bin
121copy %src\bin\dialoged.exe bin
122copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
123
124rem Time to regenerate the WISE install script, wxwin2.wse.
125rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
126rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
127echo Calling 'makewise' to generate wxwin2.wse...
128call %WXWIN\distrib\msw\makewise.bat
129
130erase /Y %dest\setup.*
131
132rem Now invoke WISE install on the new wxwin2.wse
133set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse
134echo Invoking %wisecmd...
135start /w %wisecmd
136Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\setup_%version%.exe
137
138cd %dest
139
140Rem tidy up capitalisation of filenames
141ren setup.EXE s
142ren s setup.exe
143
144ren setup.w02 s
145ren s setup.w02
146
147ren setup.w03 s
148ren s setup.w03
149
150ren setup.w04 s
151ren s setup.w04
152
153ren setup.w05 s
154ren s setup.w05
155
156ren setup.w06 s
157ren s setup.w06
158
159ren setup.w07 s
160ren s setup.w07
161
162rem Put all the setup files into a single zip archive.
163zip32 wx%version%_setup.zip readme.txt setup.*
164
165echo wxWindows archived.
166
167goto end
168
169:usage
170echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files,
171echo and optionally makes a deliver\wx directory and a setup.exe
172echo if you specify 'wise' (skipping the zipping if you use 'wiseonly').
173echo.
174echo Usage: zipdist [wise | wiseonly]
175
176:end