2 rem Zip up an external, generic + Windows distribution of wxWindows 2.0
5 if "%src" == "" goto usage
6 if "%dest" == "" goto usage
7 echo About to archive an external wxWindows distribution
:
10 echo CTRL
-C
if this is
not correct.
15 erase %dest\wx200
*.zip
16 erase %dest\glcanvas.zip
18 erase %dest
\tex
2rtf
2.zip
21 if direxist
%dest\wx deltree
/Y
%dest\wx
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
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
43 rem VC++ project files
44 zip32
-@
%dest\wx200vc.zip
< %src\distrib\msw
\vc.rsp
46 rem BC++ project files
47 zip32
-@
%dest\wx200bc.zip
< %src\distrib\msw
\bc.rsp
49 rem CodeWarrior project files
50 zip32
-@
%dest\wx200cw.zip
< %src\distrib\msw\cw.rsp
53 zip32
-@
%dest\ogl3.zip
< %src\distrib\msw\ogl.rsp
56 zip32
-@
%dest\glcanvas.zip
< %src\distrib\msw\glcanvas.rsp
59 zip32
-@
%dest
\tex
2rtf
2.zip
< %src\distrib\msw
\tex
2rtf.rsp
62 zip32
-@
%dest
\treedraw.zip
< %src\distrib\msw\wxtree.rsp
65 zip32
-@
%dest\jpeg.zip
< %src\distrib\msw\jpeg.rsp
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
79 rem Unzip the Windows files into 'wx'
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.
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
95 rem unzip32 -o ..\wx200doc.zip
96 rem unzip32 -o ..\wx200bc.zip
97 rem unzip32 -o ..\wx200cw.zip
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
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
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
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...
123 echo wxWindows archived.
127 echo DOS wxWindows distribution.
128 echo Usage
: zipdist source destination
129 echo e.g. zipdist d
:\wx2\wxWindows d
:\wx2\wxWindows\deliver