]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/zipdistinno.bat
wxScrolledWindow is now a native widget under GTK.
[wxWidgets.git] / distrib / msw / zipdistinno.bat
CommitLineData
46f5ad7d
JS
1@echo off
2rem Zip up an external, generic + Windows distribution of wxWindows 2
3rem using Inno Setup + ScriptMaker
4set src=%wxwin
5set dest=%src\deliver
6set inno=0
7
8Rem Set this to the required version
e74a9319 9set version=2.3.0
46f5ad7d
JS
10
11if "%src" == "" goto usage
12if "%dest" == "" goto usage
13if "%1" == "-help" goto usage
14if "%1" == "--help" goto usage
15if "%1" == "/?" goto usage
16if "%1" == "innoonly" goto dounzip
17if "%1" == "inno" set inno=1
18if "%1" == "tidyup" goto tidyup
19echo About to archive an external wxWindows distribution:
20echo From %src
21echo To %dest
22if "%inno" == "1" echo with Inno Setup creation.
23echo CTRL-C if this is not correct.
24pause
25
26erase %dest\wx*.zip
27erase %dest\*.htb
28erase %dest\ogl3.zip
29erase %dest\tex2rtf2.zip
30erase %dest\jpeg.zip
31erase %dest\tiff.zip
32erase %dest\dialoged.zip
33erase %dest\utils.zip
34erase %dest\extradoc.zip
35erase %dest\*-win32.zip
36
37if direxist %dest\wx erase /sxyz %dest\wx\
38if not direxist %dest mkdir %dest
39
40cd %src
41echo Zipping...
42
43Rem Zip up the complete wxMSW-xxx.zip file
44Rem NO, do it by unarchiving component files, deleting/copying some files, then
45Rem rearchiving.
46Rem zip32 -@ %dest\wxMSW-%version%.zip < %src\distrib\msw\generic.rsp
47Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\msw.rsp
48Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\wx_chm.rsp
49Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\jpeg.rsp
50Rem zip32 -@ -u %dest\wxMSW-%version%.zip < %src\distrib\msw\tiff.rsp
51
52Rem Below is the old-style separated-out format. This is retained only
53Rem for local use, and for creating wxMSW-xxx.zip.
54zip32 -@ %dest\wxWindows-%version%-gen.zip < %src\distrib\msw\generic.rsp
55zip32 -@ -u %dest\wxWindows-%version%-gen.zip < %src\distrib\msw\makefile.rsp
56zip32 -@ %dest\wxWindows-%version%-msw.zip < %src\distrib\msw\msw.rsp
57zip32 -@ -u %dest\wxWindows-%version%-msw.zip < %src\distrib\msw\makefile.rsp
58zip32 -@ %dest\wxWindows-%version%-gtk.zip < %src\distrib\msw\gtk.rsp
59zip32 -@ -u %dest\wxWindows-%version%-gtk.zip < %src\distrib\msw\makefile.rsp
60zip32 -@ %dest\wxWindows-%version%-stubs.zip < %src\distrib\msw\stubs.rsp
61zip32 -@ %dest\wxWindows-%version%-mot.zip < %src\distrib\msw\motif.rsp
62zip32 -@ -u %dest\wxWindows-%version%-mot.zip < %src\distrib\msw\makefile.rsp
63Rem (Obsolete) zip32 -@ %dest\wxWindows-%version%-user.zip < %src\distrib\msw\user.rsp
64
65zip32 -@ %dest\wxWindows-%version%-DocSource.zip < %src\distrib\msw\docsrc.rsp
66zip32 -@ %dest\wxWindows-%version%-WinHelp.zip < %src\distrib\msw\wx_hlp.rsp
67zip32 -@ %dest\wxWindows-%version%-HTML.zip < %src\distrib\msw\wx_html.rsp
68zip32 -@ %dest\wxWindows-%version%-PDF.zip < %src\distrib\msw\wx_pdf.rsp
69zip32 -@ %dest\wxWindows-%version%-Word.zip < %src\distrib\msw\wx_word.rsp
70zip32 -@ %dest\wxWindows-%version%-HTB.zip < %src\distrib\msw\wx_htb.rsp
71zip32 -@ %dest\wxWindows-%version%-HTMLHelp.zip < %src\distrib\msw\wx_chm.rsp
72
73Rem PDF/HTML docs that should go into the Windows setup because
74Rem there are no WinHelp equivalents
75zip32 -@ %dest\extradoc.zip < %src\distrib\msw\extradoc.rsp
76
77rem VC++ project files
78zip32 -@ %dest\wxWindows-%version%-vc.zip < %src\distrib\msw\vc.rsp
79
80rem BC++ project files
81zip32 -@ %dest\wxWindows-%version%-bc.zip < %src\distrib\msw\bc.rsp
82
83rem CodeWarrior project files
84zip32 -@ %dest\wxWindows-%version%-cw.zip < %src\distrib\msw\cw.rsp
85
86rem OGL 3
87zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
88
89rem MMedia
90zip32 -@ %dest\mmedia.zip < %src\distrib\msw\mmedia.rsp
91
92rem STC (Scintilla widget)
93zip32 -@ %dest\stc.zip < %src\distrib\msw\stc.rsp
94
95rem GLCanvas: obsolete, now in main library
96rem zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
97
98rem Tex2RTF
99zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp
100
101rem JPEG source
102zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp
103
104rem TIFF source
105zip32 -@ %dest\tiff.zip < %src\distrib\msw\tiff.rsp
106
e74a9319
JS
107zip32 -@ %dest\wxxml.zip < %src\distrib\msw\xml.rsp
108
46f5ad7d
JS
109rem Dialog Editor source and binary
110erase %dest\dialoged_source.zip
111zip32 -@ %dest\dialoged_source.zip < %src\distrib\msw\dialoged.rsp
112zip32 -j %dest\dialoged.zip %dest\dialoged_source.zip %src\bin\dialoged.exe %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt
113erase %dest\dialoged_source.zip
114
115rem Misc. utils not in the main distribution
116zip32 -@ %dest\utils.zip < %src\distrib\msw\utils.rsp
117zip32 -@ -u %dest\utils.zip < %src\distrib\msw\utilmake.rsp
118
119copy %src\docs\changes.txt %dest
120copy %src\docs\msw\install.txt %dest\install_msw.txt
121copy %src\docs\motif\install.txt %dest\install_motif.txt
122copy %src\docs\gtk\install.txt %dest\install_gtk.txt
123copy %src\docs\readme.txt %dest
124copy %src\docs\motif\readme.txt %dest\readme_motif.txt
125copy %src\docs\gtk\readme.txt %dest\readme_gtk.txt
126copy %src\docs\msw\readme.txt %dest\readme_msw.txt
127copy %src\docs\readme_vms.txt %dest
128copy %src\docs\motif\makewxmotif %dest
129copy %src\docs\gtk\makewxgtk %dest
130
131Rem Skip Inno Setup if inno is 0.
132if "%inno" == "0" goto end
133
134:dounzip
135
136Rem Make dialoged-win32.zip and tex2rtf-win32.zip
137
138cd %src\bin
139
140zip32 %dest\dialoged-win32.zip dialoged.*
141zip32 %dest\tex2rtf-win32.zip tex2rtf.*
142
143cd %dest
144
145rem Unzip the Windows files into 'wx'
146mkdir %dest\wx
147
148Rem After this change of directory, we're in the
149Rem temporary 'wx' directory and not acting on
150Rem the source wxWindows directory.
151cd %dest\wx
152unzip32 -o ..\wxWindows-%version%-msw.zip
153unzip32 -o ..\wxWindows-%version%-gen.zip
154unzip32 -o ..\wxWindows-%version%-vc.zip
155unzip32 -o ..\wxWindows-%version%-bc.zip
156unzip32 -o ..\wxWindows-%version%-HTMLHelp.zip
157unzip32 -o ..\extradoc.zip
158Rem Need Word file, for Remstar DB classes
159unzip32 -o ..\wxWindows-%version%-Word.zip
160unzip32 -o ..\ogl3.zip
161unzip32 -o ..\jpeg.zip
162unzip32 -o ..\tiff.zip
e74a9319 163unzip32 -o ..\xml.zip
46f5ad7d
JS
164unzip32 -o ..\tex2rtf2.zip
165
166rem Now delete a few files that are unnecessary
167attrib -R *
168erase /Y BuildCVS.txt *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh descrip.mms
169erase /Y configure samples\configure samples\*.in demos\configure demos\*.in contrib\configure contrib\*.in
170erase /Y setup.h.in setup.h_vms
171erase /SY Makefile.in
172erase /Y docs\html\wxbook.htm docs\html\roadmap.htm
173erase /Y contrib\docs\winhelp\mmedia.*
174erase /Y contrib\docs\winhelp\stc.*
175erase /Y contrib\docs\htmlhelp\mmedia.*
176erase /Y contrib\docs\htmlhelp\stc.*
177erase /Y contrib\docs\pdf\*.*
178erase /sxzy contrib\docs\latex\ogl
179erase /Y src\mingegcs.bat
180erase /Y distrib
181
182rem Now copy some binary files to 'bin'
183if not isdir bin mkdir bin
184copy %src\bin\dialoged.exe bin
185copy %src\bin\tex2rtf.exe bin
186copy %src\bin\dbgview.* bin
187copy %src\bin\life.exe bin
188copy %src\demos\life\breeder.lif bin
189copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
190copy %src\docs\winhelp\tex2rtf.hlp %src\docs\winhelp\tex2rtf.cnt bin
191
192Rem Make wxMSW-xxx.zip
193zip32 -r ..\wxMSW-%version%.zip *
194
195rem Time to regenerate the Inno Setup script, wxwin2.iss.
196rem NB: if you've changed wxwin2.iss using ScriptMaker, call splitinno.exe
197rem from within distrib\msw, to split off innotop.txt and innobott.txt.
198rem (NOT YET IMPLEMENTED)
199echo Calling 'makeinno' to generate wxwin2.iss...
200call %WXWIN\distrib\msw\makeinno.bat
201
202erase /Y %dest\setup.*
203
204rem Now invoke Inno Setup on the new wxwin2.iss
205set innocmd="C:\Program Files\Inno Setup 1.3\compil32.exe" /cc %WXWIN\distrib\msw\wxwin2.iss
206echo Invoking %innocmd...
207start "Inno Setup" /w %innocmd%
208pause Press any key to continue with the wxWindows distribution...
209Rem ren %WXWIN\deliver2\setup.EXE %WXWIN\deliver2\wxMSW-%version%-setup.exe
210
211:tidyup
212cd %dest
213
214rem Put all the setup files into a single zip archive.
215zip32 wxMSW-%version%-setup.zip readme.txt setup.*
216
217echo wxWindows archived.
218
219goto end
220
221:usage
222echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files,
223echo and optionally makes a deliver2\wx directory and a setup.exe
224echo if you specify 'inno' (skipping the zipping if you use 'innoonly').
225echo.
226echo "Usage: zipdist [inno | innoonly]"
227
228:end