2 rem Zip up an external, generic + Windows distribution of wxWindows 2.0
7 Rem Set this to the required version
10 if "%src" == "" goto usage
11 if "%dest" == "" goto usage
12 if "%1" == "-help" goto usage
13 if "%1" == "--help" goto usage
14 if "%1" == "/?" goto usage
15 if "%1" == "wiseonly" goto dounzip
16 if "%1" == "wise" set wise
=1
17 echo About to archive an external wxWindows distribution
:
20 if "%wise" == "1" echo with WISE setup creation.
21 echo CTRL
-C
if this is
not correct.
26 erase %dest
\tex
2rtf
2.zip
30 if direxist
%dest\wx deltree
/Y
%dest\wx
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
44 Rem (Obsolete) zip32 -@ %dest\wx%version%_user.zip < %src\distrib\msw\user.rsp
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
52 rem VC++ project files
53 zip32
-@
%dest\wx
%version%_vc.zip
< %src\distrib\msw
\vc.rsp
55 rem BC++ project files
56 zip32
-@
%dest\wx
%version%_bc.zip
< %src\distrib\msw
\bc.rsp
58 rem CodeWarrior project files
59 zip32
-@
%dest\wx
%version%_cw.zip
< %src\distrib\msw\cw.rsp
62 zip32
-@
%dest\ogl3.zip
< %src\distrib\msw\ogl.rsp
64 rem GLCanvas: obsolete, now in main library
65 rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
68 zip32
-@
%dest
\tex
2rtf
2.zip
< %src\distrib\msw
\tex
2rtf.rsp
71 zip32
-@
%dest
\treedraw.zip
< %src\distrib\msw\wxtree.rsp
74 zip32
-@
%dest\jpeg.zip
< %src\distrib\msw\jpeg.rsp
77 zip32
-@
%dest
\tiff.zip
< %src\distrib\msw
\tiff.rsp
79 copy %src\docs\changes.txt
%dest
80 copy %src\docs\msw\install.txt
%dest\install_msw.txt
81 copy %src\docs\motif\install.txt
%dest\install_motif.txt
82 copy %src\docs\gtk\install.txt
%dest\install_gtk.txt
83 copy %src\docs
\readme.txt
%dest
84 copy %src\docs
\release.txt
%dest
85 copy %src\docs\motif\makewxmotif
%dest
86 copy %src\docs\gtk\makewxgtk
%dest
88 Rem Skip WISE setup if wise is 0.
89 if "%wise" == "0" goto end
95 rem Unzip the Windows files into 'wx'
98 Rem After this change of directory, we're in the
99 Rem temporary 'wx' directory and not acting on
100 Rem the source wxWindows directory.
102 unzip32
-o ..\wx
%version%_msw.zip
103 unzip32
-o ..\wx
%version%_gen.zip
104 unzip32
-o ..\wx
%version%_vc.zip
105 unzip32
-o ..\wx
%version%_bc.zip
106 unzip32
-o ..\wx
%version%_hlp.zip
107 Rem Need Word file, for Remstar DB classes
108 unzip32
-o ..\wx
%version%_wrd.zip
109 unzip32
-o ..
\treedraw.zip
110 unzip32
-o ..\ogl3.zip
111 unzip32
-o ..\jpeg.zip
112 unzip32
-o ..
\tiff.zip
113 unzip32
-o ..
\tex
2rtf
2.zip
115 rem Now delete a few files that are unnecessary
117 erase /Y BuildCVS.txt
*.in
*.spec
*.guess
*.sub mkinstalldirs modules install
-sh
*.sh descrip.mms
118 erase /Y setup.h.in setup.h_vms
119 erase /SY Makefile.in
120 rem erase /Y docs\pdf\ogl.pdf
121 rem deltree /Y docs\html\ogl
123 rem Now copy some binary files to 'bin'
124 if not isdir bin
mkdir bin
125 copy %src
\bin\dialoged.exe bin
126 copy %src\docs\winhelp\dialoged.hlp
%src\docs\winhelp\dialoged.cnt bin
128 rem Time to regenerate the WISE install script, wxwin2.wse.
129 rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
130 rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
131 echo Calling
'makewise' to generate wxwin2.wse...
132 call %WXWIN\distrib\msw\makewise.bat
134 erase /Y
%dest\setup.
*
136 rem Now invoke WISE install on the new wxwin2.wse
137 set wisecmd
="c:\Program Files\wise\wise32.exe" /C
%WXWIN\distrib\msw\wxwin2.wse
138 echo Invoking
%wisecmd...
140 Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\setup_%version%.exe
144 Rem tidy up capitalisation of filenames
166 rem Put all the setup files into a single zip archive.
167 zip32 wx
%version%_setup.zip readme.txt setup.
*
169 echo wxWindows archived.
174 echo DOS wxWindows distribution. Zips up all GTK
/Motif
/MSW
/doc
files,
175 echo and optionally makes a deliver\wx directory and a setup.exe
176 echo if you specify
'wise' (skipping the zipping
if you
use 'wiseonly').
178 echo Usage
: zipdist
[wise | wiseonly
]