]>
Commit | Line | Data |
---|---|---|
1 | @echo off | |
2 | rem Zip up an external, generic + Windows distribution of wxWindows 2.0 | |
3 | set src=%wxwin | |
4 | set dest=%src\deliver | |
5 | if "%src" == "" goto usage | |
6 | if "%dest" == "" goto usage | |
7 | echo About to archive an external wxWindows distribution: | |
8 | echo From %src | |
9 | echo To %dest | |
10 | echo CTRL-C if this is not correct. | |
11 | pause | |
12 | ||
13 | rem goto dounzip | |
14 | ||
15 | erase %dest\wx200*.zip | |
16 | erase %dest\glcanvas.zip | |
17 | erase %dest\ogl3.zip | |
18 | erase %dest\tex2rtf2.zip | |
19 | erase %dest\jpeg.zip | |
20 | ||
21 | if direxist %dest\wx deltree /Y %dest\wx | |
22 | ||
23 | cd %src | |
24 | echo Zipping... | |
25 | ||
26 | zip32 -@ %dest\wx200gen.zip < %src\distrib\msw\generic.rsp | |
27 | zip32 -@ -u %dest\wx200gen.zip < %src\distrib\msw\makefile.rsp | |
28 | zip32 -@ %dest\wx200msw.zip < %src\distrib\msw\msw.rsp | |
29 | zip32 -@ -u %dest\wx200msw.zip < %src\distrib\msw\makefile.rsp | |
30 | zip32 -@ %dest\wx200gtk.zip < %src\distrib\msw\gtk.rsp | |
31 | zip32 -@ -u %dest\wx200gtk.zip < %src\distrib\msw\makefile.rsp | |
32 | zip32 -@ %dest\wx200stubs.zip < %src\distrib\msw\stubs.rsp | |
33 | zip32 -@ %dest\wx200mot.zip < %src\distrib\msw\motif.rsp | |
34 | zip32 -@ -u %dest\wx200mot.zip < %src\distrib\msw\makefile.rsp | |
35 | zip32 -@ %dest\wx200user.zip < %src\distrib\msw\user.rsp | |
36 | ||
37 | zip32 -@ %dest\wx200doc.zip < %src\distrib\msw\docsrc.rsp | |
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 | |
41 | zip32 -@ %dest\wx200wrd.zip < %src\distrib\msw\wx_word.rsp | |
42 | ||
43 | rem VC++ project files | |
44 | zip32 -@ %dest\wx200vc.zip < %src\distrib\msw\vc.rsp | |
45 | ||
46 | rem BC++ project files | |
47 | zip32 -@ %dest\wx200bc.zip < %src\distrib\msw\bc.rsp | |
48 | ||
49 | rem CodeWarrior project files | |
50 | zip32 -@ %dest\wx200cw.zip < %src\distrib\msw\cw.rsp | |
51 | ||
52 | rem OGL 3 | |
53 | zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp | |
54 | ||
55 | rem GLCanvas | |
56 | zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp | |
57 | ||
58 | rem Tex2RTF | |
59 | zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp | |
60 | ||
61 | rem wxTreeLayout | |
62 | zip32 -@ %dest\treedraw.zip < %src\distrib\msw\wxtree.rsp | |
63 | ||
64 | rem JPEG source | |
65 | zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp | |
66 | ||
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 | |
72 | copy %src\docs\motif\makewxmotif %dest | |
73 | copy %src\docs\gtk\makewxgtk %dest | |
74 | ||
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 | |
89 | unzip32 -o ..\wx200hlp.zip | |
90 | unzip32 -o ..\glcanvas.zip | |
91 | unzip32 -o ..\treedraw.zip | |
92 | unzip32 -o ..\ogl3.zip | |
93 | unzip32 -o ..\jpeg.zip | |
94 | ||
95 | rem unzip32 -o ..\wx200doc.zip | |
96 | rem unzip32 -o ..\wx200bc.zip | |
97 | rem unzip32 -o ..\wx200cw.zip | |
98 | ||
99 | rem Now delete a few files that are unnecessary | |
100 | erase /Y *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh | |
101 | erase /SY Makefile.in | |
102 | erase /Y docs\pdf\ogl.pdf | |
103 | deltree /Y docs\html\ogl | |
104 | ||
105 | rem Now copy some binary files to 'bin' | |
106 | if not isdir bin mkdir bin | |
107 | copy %src\bin\dialoged.exe bin | |
108 | copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin | |
109 | ||
110 | rem Time to regenerate the WISE install script, wxwin2.wse. | |
111 | rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe | |
112 | rem from within distrib\msw, to split off wisetop.txt and wisebott.txt. | |
113 | echo Calling 'makewise' to generate wxwin2.wse... | |
114 | call %WXWIN\distrib\msw\makewise.bat | |
115 | ||
116 | rem Now invoke WISE install on the new wxwin2.wse | |
117 | set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse | |
118 | echo Invoking %wisecmd... | |
119 | start /w %wisecmd | |
120 | ||
121 | cd %dest | |
122 | ||
123 | echo wxWindows archived. | |
124 | goto end | |
125 | ||
126 | :usage | |
127 | echo DOS wxWindows distribution. | |
128 | echo Usage: zipdist source destination | |
129 | echo e.g. zipdist d:\wx2\wxWindows d:\wx2\wxWindows\deliver | |
130 | ||
131 | :end |