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