2 rem Zip up an external, generic + Windows distribution of wxWindows 2
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.
27 erase %dest
\tex
2rtf
2.zip
30 erase %dest\dialoged.zip
32 erase %dest\extradoc.zip
33 erase %dest\
*-win32.zip
35 if direxist
%dest\wx deltree
/Y
%dest\wx
40 Rem Zip up the complete wxMSW-xxx.zip file
41 Rem NO, do it by unarchiving component files, deleting/copying some files, then
43 Rem zip32 -@ %dest\wxMSW-%version%.zip < %src\distrib\msw\generic.rsp
44 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\msw.rsp
45 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\wx_chm.rsp
46 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\jpeg.rsp
47 Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\tiff.rsp
49 Rem Below is the old-style separated-out format. This is retained only
50 Rem for local use, and for creating wxMSW-xxx.zip.
51 zip32
-@
%dest\wxWindows
-%version%-gen.zip
< %src\distrib\msw\generic.rsp
52 zip32
-@
-u
%dest\wxWindows
-%version%-gen.zip
< %src\distrib\msw\makefile.rsp
53 zip32
-@
%dest\wxWindows
-%version%-msw.zip
< %src\distrib\msw\msw.rsp
54 zip32
-@
-u
%dest\wxWindows
-%version%-msw.zip
< %src\distrib\msw\makefile.rsp
55 zip32
-@
%dest\wxWindows
-%version%-gtk.zip
< %src\distrib\msw\gtk.rsp
56 zip32
-@
-u
%dest\wxWindows
-%version%-gtk.zip
< %src\distrib\msw\makefile.rsp
57 zip32
-@
%dest\wxWindows
-%version%-stubs.zip
< %src\distrib\msw\stubs.rsp
58 zip32
-@
%dest\wxWindows
-%version%-mot.zip
< %src\distrib\msw\motif.rsp
59 zip32
-@
-u
%dest\wxWindows
-%version%-mot.zip
< %src\distrib\msw\makefile.rsp
60 Rem (Obsolete) zip32 -@ %dest\wxWindows-%version%-user.zip < %src\distrib\msw\user.rsp
62 zip32
-@
%dest\wxWindows
-%version%-DocSource.zip
< %src\distrib\msw\docsrc.rsp
63 zip32
-@
%dest\wxWindows
-%version%-WinHelp.zip
< %src\distrib\msw\wx_hlp.rsp
64 zip32
-@
%dest\wxWindows
-%version%-HTML.zip
< %src\distrib\msw\wx_html.rsp
65 zip32
-@
%dest\wxWindows
-%version%-PDF.zip
< %src\distrib\msw\wx_pdf.rsp
66 zip32
-@
%dest\wxWindows
-%version%-Word.zip
< %src\distrib\msw\wx_word.rsp
67 zip32
-@
%dest\wxWindows
-%version%-HTB.zip
< %src\distrib\msw\wx_htb.rsp
68 zip32
-@
%dest\wxWindows
-%version%-HTMLHelp.zip
< %src\distrib\msw\wx_chm.rsp
70 Rem PDF/HTML docs that should go into the Windows setup because
71 Rem there are no WinHelp equivalents
72 zip32
-@
%dest\extradoc.zip
< %src\distrib\msw\extradoc.rsp
74 rem VC++ project files
75 zip32
-@
%dest\wxWindows
-%version%-vc.zip
< %src\distrib\msw
\vc.rsp
77 rem BC++ project files
78 zip32
-@
%dest\wxWindows
-%version%-bc.zip
< %src\distrib\msw
\bc.rsp
80 rem CodeWarrior project files
81 zip32
-@
%dest\wxWindows
-%version%-cw.zip
< %src\distrib\msw\cw.rsp
84 zip32
-@
%dest\ogl3.zip
< %src\distrib\msw\ogl.rsp
87 zip32
-@
%dest\mmedia.zip
< %src\distrib\msw\mmedia.rsp
89 rem STC (Scintilla widget)
90 zip32
-@
%dest\stc.zip
< %src\distrib\msw\stc.rsp
92 rem GLCanvas: obsolete, now in main library
93 rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
96 zip32
-@
%dest
\tex
2rtf
2.zip
< %src\distrib\msw
\tex
2rtf.rsp
99 zip32
-@
%dest\jpeg.zip
< %src\distrib\msw\jpeg.rsp
102 zip32
-@
%dest
\tiff.zip
< %src\distrib\msw
\tiff.rsp
104 rem Dialog Editor source and binary
105 erase %dest\dialoged_source.zip
106 zip32
-@
%dest\dialoged_source.zip
< %src\distrib\msw\dialoged.rsp
107 zip32
-j
%dest\dialoged.zip
%dest\dialoged_source.zip
%src
\bin\dialoged.exe
%src\docs\winhelp\dialoged.hlp
%src\docs\winhelp\dialoged.cnt
108 erase %dest\dialoged_source.zip
110 rem Misc. utils not in the main distribution
111 zip32
-@
%dest\utils.zip
< %src\distrib\msw\utils.rsp
112 zip32
-@
-u
%dest\utils.zip
< %src\distrib\msw\utilmake.rsp
114 copy %src\docs\changes.txt
%dest
115 copy %src\docs\msw\install.txt
%dest\install_msw.txt
116 copy %src\docs\motif\install.txt
%dest\install_motif.txt
117 copy %src\docs\gtk\install.txt
%dest\install_gtk.txt
118 copy %src\docs
\readme.txt
%dest
119 copy %src\docs\motif
\readme.txt
%dest
\readme_motif.txt
120 copy %src\docs\gtk
\readme.txt
%dest
\readme_gtk.txt
121 copy %src\docs\msw
\readme.txt
%dest
\readme_msw.txt
122 copy %src\docs
\readme_vms.txt
%dest
123 copy %src\docs\motif\makewxmotif
%dest
124 copy %src\docs\gtk\makewxgtk
%dest
126 Rem Skip WISE setup if wise is 0.
127 if "%wise" == "0" goto end
131 Rem Make dialoged-win32.zip and tex2rtf-win32.zip
135 zip32
%dest\dialoged
-win32.zip dialoged.
*
136 zip32
%dest
\tex
2rtf
-win32.zip tex2rtf.
*
140 rem Unzip the Windows files into 'wx'
143 Rem After this change of directory, we're in the
144 Rem temporary 'wx' directory and not acting on
145 Rem the source wxWindows directory.
147 unzip32
-o ..\wxWindows
-%version%-msw.zip
148 unzip32
-o ..\wxWindows
-%version%-gen.zip
149 unzip32
-o ..\wxWindows
-%version%-vc.zip
150 unzip32
-o ..\wxWindows
-%version%-bc.zip
151 unzip32
-o ..\wxWindows
-%version%-HTMLHelp.zip
152 unzip32
-o ..\extradoc.zip
153 Rem Need Word file, for Remstar DB classes
154 unzip32
-o ..\wxWindows
-%version%-Word.zip
155 unzip32
-o ..\ogl3.zip
156 unzip32
-o ..\jpeg.zip
157 unzip32
-o ..
\tiff.zip
158 unzip32
-o ..
\tex
2rtf
2.zip
160 rem Now delete a few files that are unnecessary
162 erase /Y BuildCVS.txt
*.in
*.spec
*.guess
*.sub mkinstalldirs modules install
-sh
*.sh descrip.mms
163 erase /Y configure samples\configure samples\
*.in demos\configure demos\
*.in contrib\configure contrib\
*.in
164 erase /Y setup.h.in setup.h_vms
165 erase /SY Makefile.in
166 erase /Y docs\html\wxbook.htm docs\html
\roadmap.htm
167 erase /Y contrib\docs\winhelp\mmedia.
*
168 erase /Y contrib\docs\winhelp\stc.
*
169 erase /Y contrib\docs\htmlhelp\mmedia.
*
170 erase /Y contrib\docs\htmlhelp\stc.
*
171 erase /Y contrib\docs\pdf\
*.
*
172 deltree
/Y contrib\docs\latex\ogl
173 erase /Y src\mingegcs.bat
176 rem Now copy some binary files to 'bin'
177 if not isdir bin
mkdir bin
178 copy %src
\bin\dialoged.exe bin
179 copy %src
\bin
\tex
2rtf.exe bin
180 copy %src
\bin\dbgview.
* bin
181 copy %src
\bin\life.exe bin
182 copy %src\docs\winhelp\dialoged.hlp
%src\docs\winhelp\dialoged.cnt bin
183 copy %src\docs\winhelp
\tex
2rtf.hlp
%src\docs\winhelp
\tex
2rtf.cnt bin
185 Rem Make wxMSW-xxx.zip
186 zip32
-r ..\wxMSW
-%version%.zip
*
188 rem Time to regenerate the WISE install script, wxwin2.wse.
189 rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
190 rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
191 echo Calling
'makewise' to generate wxwin2.wse...
192 call %WXWIN\distrib\msw\makewise.bat
194 erase /Y
%dest\setup.
*
196 rem Now invoke WISE install on the new wxwin2.wse
197 set wisecmd
="c:\Program Files\wise\wise32.exe" /C
%WXWIN\distrib\msw\wxwin2.wse
198 echo Invoking
%wisecmd...
200 pause Press any key to continue with the wxWindows distribution...
201 Rem ren %WXWIN\deliver\setup.EXE %WXWIN\deliver\wxMSW-%version%-setup.exe
205 Rem tidy up capitalisation of filenames
230 rem Put all the setup files into a single zip archive.
231 zip32 wxMSW
-%version%-setup.zip readme.txt setup.
*
233 echo wxWindows archived.
238 echo DOS wxWindows distribution. Zips up all GTK
/Motif
/MSW
/doc
files,
239 echo and optionally makes a deliver\wx directory and a setup.exe
240 echo if you specify
'wise' (skipping the zipping
if you
use 'wiseonly').
242 echo Usage
: zipdist
[wise | wiseonly
]