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