]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
1 | @echo off |
2 | rem Zip up an external, generic + Windows distribution of wxWindows 2.0 | |
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 | |
5fa399c9 | 8 | set version=2_1_14 |
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 |
06ad8636 JS |
25 | erase %dest\ogl3.zip |
26 | erase %dest\tex2rtf2.zip | |
794005c0 | 27 | erase %dest\jpeg.zip |
ccebc98a | 28 | erase %dest\tiff.zip |
281b0186 | 29 | erase %dest\dialoged.zip |
0a0352f2 | 30 | erase %dest\utils.zip |
f47cd02d | 31 | erase %dest\extradoc.zip |
457814b5 | 32 | |
07e63290 JS |
33 | if direxist %dest\wx deltree /Y %dest\wx |
34 | ||
bbcdf8bc | 35 | cd %src |
457814b5 | 36 | echo Zipping... |
88150e60 | 37 | |
7f24fdbf JS |
38 | zip32 -@ %dest\wx%version%_gen.zip < %src\distrib\msw\generic.rsp |
39 | zip32 -@ -u %dest\wx%version%_gen.zip < %src\distrib\msw\makefile.rsp | |
40 | zip32 -@ %dest\wx%version%_msw.zip < %src\distrib\msw\msw.rsp | |
41 | zip32 -@ -u %dest\wx%version%_msw.zip < %src\distrib\msw\makefile.rsp | |
42 | zip32 -@ %dest\wx%version%_gtk.zip < %src\distrib\msw\gtk.rsp | |
43 | zip32 -@ -u %dest\wx%version%_gtk.zip < %src\distrib\msw\makefile.rsp | |
44 | zip32 -@ %dest\wx%version%_stubs.zip < %src\distrib\msw\stubs.rsp | |
45 | zip32 -@ %dest\wx%version%_mot.zip < %src\distrib\msw\motif.rsp | |
46 | zip32 -@ -u %dest\wx%version%_mot.zip < %src\distrib\msw\makefile.rsp | |
9bb3479c | 47 | Rem (Obsolete) zip32 -@ %dest\wx%version%_user.zip < %src\distrib\msw\user.rsp |
7f24fdbf JS |
48 | |
49 | zip32 -@ %dest\wx%version%_doc.zip < %src\distrib\msw\docsrc.rsp | |
50 | zip32 -@ %dest\wx%version%_hlp.zip < %src\distrib\msw\wx_hlp.rsp | |
51 | zip32 -@ %dest\wx%version%_htm.zip < %src\distrib\msw\wx_html.rsp | |
52 | zip32 -@ %dest\wx%version%_pdf.zip < %src\distrib\msw\wx_pdf.rsp | |
53 | zip32 -@ %dest\wx%version%_wrd.zip < %src\distrib\msw\wx_word.rsp | |
457814b5 | 54 | |
f47cd02d JS |
55 | Rem PDF/HTML docs that should go into the Windows setup because |
56 | Rem there are no WinHelp equivalents | |
57 | zip32 -@ %dest\extradoc.zip < %src\distrib\msw\extradoc.rsp | |
58 | ||
754330c0 | 59 | rem VC++ project files |
7f24fdbf | 60 | zip32 -@ %dest\wx%version%_vc.zip < %src\distrib\msw\vc.rsp |
88150e60 | 61 | |
ca5c8b2d | 62 | rem BC++ project files |
7f24fdbf | 63 | zip32 -@ %dest\wx%version%_bc.zip < %src\distrib\msw\bc.rsp |
ca5c8b2d | 64 | |
754330c0 | 65 | rem CodeWarrior project files |
7f24fdbf | 66 | zip32 -@ %dest\wx%version%_cw.zip < %src\distrib\msw\cw.rsp |
a367b9b3 | 67 | |
9838df2c | 68 | rem OGL 3 |
08853b68 | 69 | zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp |
3dd4e4e0 | 70 | |
5d525ad9 JS |
71 | rem MMedia |
72 | zip32 -@ %dest\mmedia.zip < %src\distrib\msw\mmedia.rsp | |
73 | ||
53adbc34 JS |
74 | rem STC (Scintilla widget) |
75 | zip32 -@ %dest\stc.zip < %src\distrib\msw\stc.rsp | |
76 | ||
babc9758 JS |
77 | rem GLCanvas: obsolete, now in main library |
78 | rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp | |
9838df2c | 79 | |
9a29912f | 80 | rem Tex2RTF |
3d05544e | 81 | zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp |
9a29912f | 82 | |
794005c0 JS |
83 | rem JPEG source |
84 | zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp | |
85 | ||
ccebc98a JS |
86 | rem TIFF source |
87 | zip32 -@ %dest\tiff.zip < %src\distrib\msw\tiff.rsp | |
88 | ||
281b0186 JS |
89 | rem Dialog Editor source and binary |
90 | erase %dest\dialoged_source.zip | |
91 | zip32 -@ %dest\dialoged_source.zip < %src\distrib\msw\dialoged.rsp | |
92 | zip32 -j %dest\dialoged.zip %dest\dialoged_source.zip %src\bin\dialoged.exe %src\bin\dialoged.hlp %src\bin\dialoged.cnt | |
93 | erase %dest\dialoged_source.zip | |
94 | ||
0a0352f2 JS |
95 | rem Misc. utils not in the main distribution |
96 | zip32 -@ %dest\utils.zip < %src\distrib\msw\utils.rsp | |
97 | zip32 -@ -u %dest\utils.zip < %src\distrib\msw\utilmake.rsp | |
98 | ||
ad5c34f3 JS |
99 | copy %src\docs\changes.txt %dest |
100 | copy %src\docs\msw\install.txt %dest\install_msw.txt | |
101 | copy %src\docs\motif\install.txt %dest\install_motif.txt | |
102 | copy %src\docs\gtk\install.txt %dest\install_gtk.txt | |
103 | copy %src\docs\readme.txt %dest | |
a925b006 | 104 | copy %src\docs\release.txt %dest |
c7f49969 JS |
105 | copy %src\docs\motif\makewxmotif %dest |
106 | copy %src\docs\gtk\makewxgtk %dest | |
ad5c34f3 | 107 | |
a925b006 JS |
108 | Rem Skip WISE setup if wise is 0. |
109 | if "%wise" == "0" goto end | |
110 | ||
07e63290 JS |
111 | :dounzip |
112 | ||
113 | cd %dest | |
114 | ||
115 | rem Unzip the Windows files into 'wx' | |
116 | mkdir %dest\wx | |
117 | ||
118 | Rem After this change of directory, we're in the | |
119 | Rem temporary 'wx' directory and not acting on | |
120 | Rem the source wxWindows directory. | |
121 | cd %dest\wx | |
7f24fdbf JS |
122 | unzip32 -o ..\wx%version%_msw.zip |
123 | unzip32 -o ..\wx%version%_gen.zip | |
124 | unzip32 -o ..\wx%version%_vc.zip | |
125 | unzip32 -o ..\wx%version%_bc.zip | |
126 | unzip32 -o ..\wx%version%_hlp.zip | |
f47cd02d | 127 | unzip32 -o ..\extradoc.zip |
733dac47 | 128 | Rem Need Word file, for Remstar DB classes |
7f24fdbf | 129 | unzip32 -o ..\wx%version%_wrd.zip |
07e63290 JS |
130 | unzip32 -o ..\ogl3.zip |
131 | unzip32 -o ..\jpeg.zip | |
ccebc98a | 132 | unzip32 -o ..\tiff.zip |
17d8ee1c | 133 | unzip32 -o ..\tex2rtf2.zip |
07e63290 | 134 | |
07e63290 | 135 | rem Now delete a few files that are unnecessary |
a19762cf JS |
136 | attrib -R * |
137 | erase /Y BuildCVS.txt *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh descrip.mms | |
53adbc34 | 138 | erase /Y configure samples\configure samples\*.in demos\configure demos\*.in contrib\configure contrib\*.in |
a19762cf | 139 | erase /Y setup.h.in setup.h_vms |
07e63290 | 140 | erase /SY Makefile.in |
f47cd02d JS |
141 | erase /Y docs\html\wxbook.htm docs\html\roadmap.htm |
142 | erase /Y contrib\docs\winhelp\mmedia.* | |
143 | erase /Y contrib\docs\winhelp\stc.* | |
144 | erase /Y contrib\docs\pdf\*.* | |
145 | deltree /Y contrib\docs\latex\ogl | |
07e63290 JS |
146 | |
147 | rem Now copy some binary files to 'bin' | |
148 | if not isdir bin mkdir bin | |
149 | copy %src\bin\dialoged.exe bin | |
f47cd02d | 150 | copy %src\bin\tex2rtf.exe bin |
9c6751aa JS |
151 | copy %src\bin\dbgview.* bin |
152 | copy %src\bin\life.exe bin | |
07e63290 | 153 | copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin |
f47cd02d | 154 | copy %src\docs\winhelp\tex2rtf.hlp %src\docs\winhelp\tex2rtf.cnt bin |
07e63290 JS |
155 | |
156 | rem Time to regenerate the WISE install script, wxwin2.wse. | |
157 | rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe | |
158 | rem from within distrib\msw, to split off wisetop.txt and wisebott.txt. | |
159 | echo Calling 'makewise' to generate wxwin2.wse... | |
160 | call %WXWIN\distrib\msw\makewise.bat | |
161 | ||
a19762cf | 162 | erase /Y %dest\setup.* |
b40b0f5b | 163 | |
07e63290 JS |
164 | rem Now invoke WISE install on the new wxwin2.wse |
165 | set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse | |
166 | echo Invoking %wisecmd... | |
0a0352f2 JS |
167 | start %wisecmd |
168 | pause Press any key to continue with the wxWindows distribution... | |
6e47faf1 | 169 | Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\setup_%version%.exe |
07e63290 | 170 | |
bbcdf8bc | 171 | cd %dest |
457814b5 | 172 | |
a925b006 JS |
173 | Rem tidy up capitalisation of filenames |
174 | ren setup.EXE s | |
175 | ren s setup.exe | |
176 | ||
177 | ren setup.w02 s | |
178 | ren s setup.w02 | |
179 | ||
180 | ren setup.w03 s | |
181 | ren s setup.w03 | |
182 | ||
183 | ren setup.w04 s | |
184 | ren s setup.w04 | |
185 | ||
186 | ren setup.w05 s | |
187 | ren s setup.w05 | |
188 | ||
189 | ren setup.w06 s | |
190 | ren s setup.w06 | |
191 | ||
a19762cf JS |
192 | ren setup.w07 s |
193 | ren s setup.w07 | |
194 | ||
b40b0f5b | 195 | rem Put all the setup files into a single zip archive. |
ccebc98a | 196 | zip32 wx%version%_setup.zip readme.txt setup.* |
b40b0f5b | 197 | |
457814b5 | 198 | echo wxWindows archived. |
a925b006 | 199 | |
457814b5 JS |
200 | goto end |
201 | ||
202 | :usage | |
af111fc3 JS |
203 | echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files, |
204 | echo and optionally makes a deliver\wx directory and a setup.exe | |
a925b006 | 205 | echo if you specify 'wise' (skipping the zipping if you use 'wiseonly'). |
af111fc3 | 206 | echo. |
a925b006 | 207 | echo Usage: zipdist [wise | wiseonly] |
457814b5 JS |
208 | |
209 | :end |