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