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