]>
Commit | Line | Data |
---|---|---|
457814b5 | 1 | @echo off |
f6bcfd97 | 2 | rem Zip up an external, generic + Windows distribution of wxWindows 2 |
706bb5f9 | 3 | set src=%wxwin |
bbcdf8bc | 4 | set dest=%src\deliver |
af111fc3 | 5 | set wise=0 |
7f24fdbf JS |
6 | |
7 | Rem Set this to the required version | |
f6bcfd97 | 8 | set version=2.2.0 |
7f24fdbf | 9 | |
bbcdf8bc JS |
10 | if "%src" == "" goto usage |
11 | if "%dest" == "" goto usage | |
af111fc3 JS |
12 | if "%1" == "-help" goto usage |
13 | if "%1" == "--help" goto usage | |
14 | if "%1" == "/?" goto usage | |
a925b006 | 15 | if "%1" == "wiseonly" goto dounzip |
af111fc3 | 16 | if "%1" == "wise" set wise=1 |
457814b5 | 17 | echo About to archive an external wxWindows distribution: |
bbcdf8bc | 18 | echo From %src |
589f0e3e | 19 | echo To %dest |
af111fc3 | 20 | if "%wise" == "1" echo with WISE setup creation. |
457814b5 JS |
21 | echo CTRL-C if this is not correct. |
22 | pause | |
23 | ||
7f24fdbf | 24 | erase %dest\wx*.zip |
f6bcfd97 | 25 | erase %dest\*.htb |
06ad8636 JS |
26 | erase %dest\ogl3.zip |
27 | erase %dest\tex2rtf2.zip | |
794005c0 | 28 | erase %dest\jpeg.zip |
ccebc98a | 29 | erase %dest\tiff.zip |
281b0186 | 30 | erase %dest\dialoged.zip |
0a0352f2 | 31 | erase %dest\utils.zip |
f47cd02d | 32 | erase %dest\extradoc.zip |
f6bcfd97 | 33 | erase %dest\*-win32.zip |
457814b5 | 34 | |
07e63290 JS |
35 | if direxist %dest\wx deltree /Y %dest\wx |
36 | ||
bbcdf8bc | 37 | cd %src |
457814b5 | 38 | echo Zipping... |
88150e60 | 39 | |
f6bcfd97 BP |
40 | Rem Zip up the complete wxMSW-xxx.zip file |
41 | Rem NO, do it by unarchiving component files, deleting/copying some files, then | |
42 | Rem rearchiving. | |
43 | Rem zip32 -@ %dest\wxMSW-%version%.zip < %src\distrib\msw\generic.rsp | |
44 | Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\msw.rsp | |
45 | Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\wx_chm.rsp | |
46 | Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\jpeg.rsp | |
47 | Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\tiff.rsp | |
48 | ||
49 | Rem Below is the old-style separated-out format. This is retained only | |
50 | Rem for local use, and for creating wxMSW-xxx.zip. | |
51 | zip32 -@ %dest\wxWindows-%version%-gen.zip < %src\distrib\msw\generic.rsp | |
52 | zip32 -@ -u %dest\wxWindows-%version%-gen.zip < %src\distrib\msw\makefile.rsp | |
53 | zip32 -@ %dest\wxWindows-%version%-msw.zip < %src\distrib\msw\msw.rsp | |
54 | zip32 -@ -u %dest\wxWindows-%version%-msw.zip < %src\distrib\msw\makefile.rsp | |
55 | zip32 -@ %dest\wxWindows-%version%-gtk.zip < %src\distrib\msw\gtk.rsp | |
56 | zip32 -@ -u %dest\wxWindows-%version%-gtk.zip < %src\distrib\msw\makefile.rsp | |
57 | zip32 -@ %dest\wxWindows-%version%-stubs.zip < %src\distrib\msw\stubs.rsp | |
58 | zip32 -@ %dest\wxWindows-%version%-mot.zip < %src\distrib\msw\motif.rsp | |
59 | zip32 -@ -u %dest\wxWindows-%version%-mot.zip < %src\distrib\msw\makefile.rsp | |
60 | Rem (Obsolete) zip32 -@ %dest\wxWindows-%version%-user.zip < %src\distrib\msw\user.rsp | |
61 | ||
62 | zip32 -@ %dest\wxWindows-%version%-DocSource.zip < %src\distrib\msw\docsrc.rsp | |
63 | zip32 -@ %dest\wxWindows-%version%-WinHelp.zip < %src\distrib\msw\wx_hlp.rsp | |
64 | zip32 -@ %dest\wxWindows-%version%-HTML.zip < %src\distrib\msw\wx_html.rsp | |
65 | zip32 -@ %dest\wxWindows-%version%-PDF.zip < %src\distrib\msw\wx_pdf.rsp | |
66 | zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp | |
67 | zip32 -@ %dest\wxWindows-%version%-HTB.zip < %src\distrib\msw\wx_htb.rsp | |
68 | zip32 -@ %dest\wxWindows-%version%-HTMLHelp.zip < %src\distrib\msw\wx_chm.rsp | |
457814b5 | 69 | |
f47cd02d JS |
70 | Rem PDF/HTML docs that should go into the Windows setup because |
71 | Rem there are no WinHelp equivalents | |
72 | zip32 -@ %dest\extradoc.zip < %src\distrib\msw\extradoc.rsp | |
73 | ||
754330c0 | 74 | rem VC++ project files |
f6bcfd97 | 75 | zip32 -@ %dest\wxWindows-%version%-vc.zip < %src\distrib\msw\vc.rsp |
88150e60 | 76 | |
ca5c8b2d | 77 | rem BC++ project files |
f6bcfd97 | 78 | zip32 -@ %dest\wxWindows-%version%-bc.zip < %src\distrib\msw\bc.rsp |
ca5c8b2d | 79 | |
754330c0 | 80 | rem CodeWarrior project files |
f6bcfd97 | 81 | zip32 -@ %dest\wxWindows-%version%-cw.zip < %src\distrib\msw\cw.rsp |
a367b9b3 | 82 | |
9838df2c | 83 | rem OGL 3 |
08853b68 | 84 | zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp |
3dd4e4e0 | 85 | |
5d525ad9 JS |
86 | rem MMedia |
87 | zip32 -@ %dest\mmedia.zip < %src\distrib\msw\mmedia.rsp | |
88 | ||
53adbc34 JS |
89 | rem STC (Scintilla widget) |
90 | zip32 -@ %dest\stc.zip < %src\distrib\msw\stc.rsp | |
91 | ||
babc9758 JS |
92 | rem GLCanvas: obsolete, now in main library |
93 | rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp | |
9838df2c | 94 | |
9a29912f | 95 | rem Tex2RTF |
3d05544e | 96 | zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp |
9a29912f | 97 | |
794005c0 JS |
98 | rem JPEG source |
99 | zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp | |
100 | ||
ccebc98a JS |
101 | rem TIFF source |
102 | zip32 -@ %dest\tiff.zip < %src\distrib\msw\tiff.rsp | |
103 | ||
281b0186 JS |
104 | rem Dialog Editor source and binary |
105 | erase %dest\dialoged_source.zip | |
106 | zip32 -@ %dest\dialoged_source.zip < %src\distrib\msw\dialoged.rsp | |
fbdcff4a | 107 | zip32 -j %dest\dialoged.zip %dest\dialoged_source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt |
281b0186 JS |
108 | erase %dest\dialoged_source.zip |
109 | ||
0a0352f2 JS |
110 | rem Misc. utils not in the main distribution |
111 | zip32 -@ %dest\utils.zip < %src\distrib\msw\utils.rsp | |
112 | zip32 -@ -u %dest\utils.zip < %src\distrib\msw\utilmake.rsp | |
113 | ||
ad5c34f3 JS |
114 | copy %src\docs\changes.txt %dest |
115 | copy %src\docs\msw\install.txt %dest\install_msw.txt | |
116 | copy %src\docs\motif\install.txt %dest\install_motif.txt | |
117 | copy %src\docs\gtk\install.txt %dest\install_gtk.txt | |
118 | copy %src\docs\readme.txt %dest | |
f6bcfd97 BP |
119 | copy %src\docs\motif\readme.txt %dest\readme_motif.txt |
120 | copy %src\docs\gtk\readme.txt %dest\readme_gtk.txt | |
121 | copy %src\docs\msw\readme.txt %dest\readme_msw.txt | |
122 | copy %src\docs\readme_vms.txt %dest | |
c7f49969 JS |
123 | copy %src\docs\motif\makewxmotif %dest |
124 | copy %src\docs\gtk\makewxgtk %dest | |
ad5c34f3 | 125 | |
a925b006 JS |
126 | Rem Skip WISE setup if wise is 0. |
127 | if "%wise" == "0" goto end | |
128 | ||
07e63290 JS |
129 | :dounzip |
130 | ||
f6bcfd97 BP |
131 | Rem Make dialoged-win32.zip and tex2rtf-win32.zip |
132 | ||
133 | cd %src\bin | |
134 | ||
135 | zip32 %dest\dialoged-win32.zip dialoged.* | |
136 | zip32 %dest\tex2rtf-win32.zip tex2rtf.* | |
137 | ||
07e63290 JS |
138 | cd %dest |
139 | ||
140 | rem Unzip the Windows files into 'wx' | |
141 | mkdir %dest\wx | |
142 | ||
143 | Rem After this change of directory, we're in the | |
144 | Rem temporary 'wx' directory and not acting on | |
145 | Rem the source wxWindows directory. | |
146 | cd %dest\wx | |
f6bcfd97 BP |
147 | unzip32 -o ..\wxWindows-%version%-msw.zip |
148 | unzip32 -o ..\wxWindows-%version%-gen.zip | |
149 | unzip32 -o ..\wxWindows-%version%-vc.zip | |
150 | unzip32 -o ..\wxWindows-%version%-bc.zip | |
151 | unzip32 -o ..\wxWindows-%version%-HTMLHelp.zip | |
f47cd02d | 152 | unzip32 -o ..\extradoc.zip |
733dac47 | 153 | Rem Need Word file, for Remstar DB classes |
f6bcfd97 | 154 | unzip32 -o ..\wxWindows-%version%-Word.zip |
07e63290 JS |
155 | unzip32 -o ..\ogl3.zip |
156 | unzip32 -o ..\jpeg.zip | |
ccebc98a | 157 | unzip32 -o ..\tiff.zip |
17d8ee1c | 158 | unzip32 -o ..\tex2rtf2.zip |
07e63290 | 159 | |
07e63290 | 160 | rem Now delete a few files that are unnecessary |
a19762cf JS |
161 | attrib -R * |
162 | erase /Y BuildCVS.txt *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh descrip.mms | |
53adbc34 | 163 | erase /Y configure samples\configure samples\*.in demos\configure demos\*.in contrib\configure contrib\*.in |
a19762cf | 164 | erase /Y setup.h.in setup.h_vms |
07e63290 | 165 | erase /SY Makefile.in |
f47cd02d JS |
166 | erase /Y docs\html\wxbook.htm docs\html\roadmap.htm |
167 | erase /Y contrib\docs\winhelp\mmedia.* | |
168 | erase /Y contrib\docs\winhelp\stc.* | |
f6bcfd97 BP |
169 | erase /Y contrib\docs\htmlhelp\mmedia.* |
170 | erase /Y contrib\docs\htmlhelp\stc.* | |
f47cd02d JS |
171 | erase /Y contrib\docs\pdf\*.* |
172 | deltree /Y contrib\docs\latex\ogl | |
fbdcff4a | 173 | erase /Y src\mingegcs.bat |
f6bcfd97 | 174 | erase /Y distrib |
07e63290 JS |
175 | |
176 | rem Now copy some binary files to 'bin' | |
177 | if not isdir bin mkdir bin | |
178 | copy %src\bin\dialoged.exe bin | |
f47cd02d | 179 | copy %src\bin\tex2rtf.exe bin |
9c6751aa JS |
180 | copy %src\bin\dbgview.* bin |
181 | copy %src\bin\life.exe bin | |
07e63290 | 182 | copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin |
f47cd02d | 183 | copy %src\docs\winhelp\tex2rtf.hlp %src\docs\winhelp\tex2rtf.cnt bin |
07e63290 | 184 | |
f6bcfd97 BP |
185 | Rem Make wxMSW-xxx.zip |
186 | zip32 -r ..\wxMSW-%version%.zip * | |
187 | ||
07e63290 JS |
188 | rem Time to regenerate the WISE install script, wxwin2.wse. |
189 | rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe | |
190 | rem from within distrib\msw, to split off wisetop.txt and wisebott.txt. | |
191 | echo Calling 'makewise' to generate wxwin2.wse... | |
192 | call %WXWIN\distrib\msw\makewise.bat | |
193 | ||
a19762cf | 194 | erase /Y %dest\setup.* |
b40b0f5b | 195 | |
07e63290 JS |
196 | rem Now invoke WISE install on the new wxwin2.wse |
197 | set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse | |
198 | echo Invoking %wisecmd... | |
0a0352f2 JS |
199 | start %wisecmd |
200 | pause Press any key to continue with the wxWindows distribution... | |
f6bcfd97 | 201 | Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\wxMSW-%version%-setup.exe |
07e63290 | 202 | |
bbcdf8bc | 203 | cd %dest |
457814b5 | 204 | |
a925b006 JS |
205 | Rem tidy up capitalisation of filenames |
206 | ren setup.EXE s | |
207 | ren s setup.exe | |
208 | ||
209 | ren setup.w02 s | |
210 | ren s setup.w02 | |
211 | ||
212 | ren setup.w03 s | |
213 | ren s setup.w03 | |
214 | ||
215 | ren setup.w04 s | |
216 | ren s setup.w04 | |
217 | ||
218 | ren setup.w05 s | |
219 | ren s setup.w05 | |
220 | ||
221 | ren setup.w06 s | |
222 | ren s setup.w06 | |
223 | ||
a19762cf JS |
224 | ren setup.w07 s |
225 | ren s setup.w07 | |
226 | ||
f6bcfd97 BP |
227 | ren setup.w08 s |
228 | ren s setup.w08 | |
229 | ||
b40b0f5b | 230 | rem Put all the setup files into a single zip archive. |
f6bcfd97 | 231 | zip32 wxMSW-%version%-setup.zip readme.txt setup.* |
b40b0f5b | 232 | |
457814b5 | 233 | echo wxWindows archived. |
a925b006 | 234 | |
457814b5 JS |
235 | goto end |
236 | ||
237 | :usage | |
af111fc3 JS |
238 | echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files, |
239 | echo and optionally makes a deliver\wx directory and a setup.exe | |
a925b006 | 240 | echo if you specify 'wise' (skipping the zipping if you use 'wiseonly'). |
af111fc3 | 241 | echo. |
a925b006 | 242 | echo Usage: zipdist [wise | wiseonly] |
457814b5 JS |
243 | |
244 | :end |