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
29 erase %dest\dialoged.zip
31 erase %dest\extradoc.zip
33 if direxist
%dest\wx deltree
/Y
%dest\wx
38 zip32
-@
%dest\wx
%version%_gen.zip
< %src\distrib\msw\generic.rsp
39 zip32
-@
-u
%dest\wx
%version%_gen.zip
< %src\distrib\msw\makefile.rsp
40 zip32
-@
%dest\wx
%version%_msw.zip
< %src\distrib\msw\msw.rsp
41 zip32
-@
-u
%dest\wx
%version%_msw.zip
< %src\distrib\msw\makefile.rsp
42 zip32
-@
%dest\wx
%version%_gtk.zip
< %src\distrib\msw\gtk.rsp
43 zip32
-@
-u
%dest\wx
%version%_gtk.zip
< %src\distrib\msw\makefile.rsp
44 zip32
-@
%dest\wx
%version%_stubs.zip
< %src\distrib\msw\stubs.rsp
45 zip32
-@
%dest\wx
%version%_mot.zip
< %src\distrib\msw\motif.rsp
46 zip32
-@
-u
%dest\wx
%version%_mot.zip
< %src\distrib\msw\makefile.rsp
47 Rem (Obsolete) zip32 -@ %dest\wx%version%_user.zip < %src\distrib\msw\user.rsp
49 zip32
-@
%dest\wx
%version%_doc.zip
< %src\distrib\msw\docsrc.rsp
50 zip32
-@
%dest\wx
%version%_hlp.zip
< %src\distrib\msw\wx_hlp.rsp
51 zip32
-@
%dest\wx
%version%_htm.zip
< %src\distrib\msw\wx_html.rsp
52 zip32
-@
%dest\wx
%version%_pdf.zip
< %src\distrib\msw\wx_pdf.rsp
53 zip32
-@
%dest\wx
%version%_wrd.zip
< %src\distrib\msw\wx_word.rsp
55 Rem PDF/HTML docs that should go into the Windows setup because
56 Rem there are no WinHelp equivalents
57 zip32
-@
%dest\extradoc.zip
< %src\distrib\msw\extradoc.rsp
59 rem VC++ project files
60 zip32
-@
%dest\wx
%version%_vc.zip
< %src\distrib\msw
\vc.rsp
62 rem BC++ project files
63 zip32
-@
%dest\wx
%version%_bc.zip
< %src\distrib\msw
\bc.rsp
65 rem CodeWarrior project files
66 zip32
-@
%dest\wx
%version%_cw.zip
< %src\distrib\msw\cw.rsp
69 zip32
-@
%dest\ogl3.zip
< %src\distrib\msw\ogl.rsp
72 zip32
-@
%dest\mmedia.zip
< %src\distrib\msw\mmedia.rsp
74 rem STC (Scintilla widget)
75 zip32
-@
%dest\stc.zip
< %src\distrib\msw\stc.rsp
77 rem GLCanvas: obsolete, now in main library
78 rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
81 zip32
-@
%dest
\tex
2rtf
2.zip
< %src\distrib\msw
\tex
2rtf.rsp
84 zip32
-@
%dest\jpeg.zip
< %src\distrib\msw\jpeg.rsp
87 zip32
-@
%dest
\tiff.zip
< %src\distrib\msw
\tiff.rsp
89 rem Dialog Editor source and binary
90 erase %dest\dialoged_source.zip
91 zip32
-@
%dest\dialoged_source.zip
< %src\distrib\msw\dialoged.rsp
92 zip32
-j
%dest\dialoged.zip
%dest\dialoged_source.zip
%src
\bin\dialoged.exe
%src
\bin\dialoged.hlp
%src
\bin\dialoged.cnt
93 erase %dest\dialoged_source.zip
95 rem Misc. utils not in the main distribution
96 zip32
-@
%dest\utils.zip
< %src\distrib\msw\utils.rsp
97 zip32
-@
-u
%dest\utils.zip
< %src\distrib\msw\utilmake.rsp
99 copy %src\docs\changes.txt
%dest
100 copy %src\docs\msw\install.txt
%dest\install_msw.txt
101 copy %src\docs\motif\install.txt
%dest\install_motif.txt
102 copy %src\docs\gtk\install.txt
%dest\install_gtk.txt
103 copy %src\docs
\readme.txt
%dest
104 copy %src\docs
\release.txt
%dest
105 copy %src\docs\motif\makewxmotif
%dest
106 copy %src\docs\gtk\makewxgtk
%dest
108 Rem Skip WISE setup if wise is 0.
109 if "%wise" == "0" goto end
115 rem Unzip the Windows files into 'wx'
118 Rem After this change of directory, we're in the
119 Rem temporary 'wx' directory and not acting on
120 Rem the source wxWindows directory.
122 unzip32
-o ..\wx
%version%_msw.zip
123 unzip32
-o ..\wx
%version%_gen.zip
124 unzip32
-o ..\wx
%version%_vc.zip
125 unzip32
-o ..\wx
%version%_bc.zip
126 unzip32
-o ..\wx
%version%_hlp.zip
127 unzip32
-o ..\extradoc.zip
128 Rem Need Word file, for Remstar DB classes
129 unzip32
-o ..\wx
%version%_wrd.zip
130 unzip32
-o ..\ogl3.zip
131 unzip32
-o ..\jpeg.zip
132 unzip32
-o ..
\tiff.zip
133 unzip32
-o ..
\tex
2rtf
2.zip
135 rem Now delete a few files that are unnecessary
137 erase /Y BuildCVS.txt
*.in
*.spec
*.guess
*.sub mkinstalldirs modules install
-sh
*.sh descrip.mms
138 erase /Y configure samples\configure samples\
*.in demos\configure demos\
*.in contrib\configure contrib\
*.in
139 erase /Y setup.h.in setup.h_vms
140 erase /SY Makefile.in
141 erase /Y docs\html\wxbook.htm docs\html
\roadmap.htm
142 erase /Y contrib\docs\winhelp\mmedia.
*
143 erase /Y contrib\docs\winhelp\stc.
*
144 erase /Y contrib\docs\pdf\
*.
*
145 deltree
/Y contrib\docs\latex\ogl
147 rem Now copy some binary files to 'bin'
148 if not isdir bin
mkdir bin
149 copy %src
\bin\dialoged.exe bin
150 copy %src
\bin
\tex
2rtf.exe bin
151 copy %src
\bin\dbgview.
* bin
152 copy %src
\bin\life.exe bin
153 copy %src\docs\winhelp\dialoged.hlp
%src\docs\winhelp\dialoged.cnt bin
154 copy %src\docs\winhelp
\tex
2rtf.hlp
%src\docs\winhelp
\tex
2rtf.cnt bin
156 rem Time to regenerate the WISE install script, wxwin2.wse.
157 rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
158 rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
159 echo Calling
'makewise' to generate wxwin2.wse...
160 call %WXWIN\distrib\msw\makewise.bat
162 erase /Y
%dest\setup.
*
164 rem Now invoke WISE install on the new wxwin2.wse
165 set wisecmd
="c:\Program Files\wise\wise32.exe" /C
%WXWIN\distrib\msw\wxwin2.wse
166 echo Invoking
%wisecmd...
168 pause Press any key to continue with the wxWindows distribution...
169 Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\setup_%version%.exe
173 Rem tidy up capitalisation of filenames
195 rem Put all the setup files into a single zip archive.
196 zip32 wx
%version%_setup.zip readme.txt setup.
*
198 echo wxWindows archived.
203 echo DOS wxWindows distribution. Zips up all GTK
/Motif
/MSW
/doc
files,
204 echo and optionally makes a deliver\wx directory and a setup.exe
205 echo if you specify
'wise' (skipping the zipping
if you
use 'wiseonly').
207 echo Usage
: zipdist
[wise | wiseonly
]