]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/zipdist.bat
added a WXDLLEXPORT
[wxWidgets.git] / distrib / msw / zipdist.bat
1 @echo off
2 rem Zip up an external, generic + Windows distribution of wxWindows 2.0
3 set src=%wxwin
4 set dest=%src\deliver
5 set wise=0
6
7 Rem Set this to the required version
8 set version=2_1_11
9
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" == "wise" set wise=1
16 echo About to archive an external wxWindows distribution:
17 echo From %src
18 echo To %dest
19 if "%wise" == "1" echo with WISE setup creation.
20 echo CTRL-C if this is not correct.
21 pause
22
23 rem goto dounzip
24
25 erase %dest\wx*.zip
26 erase %dest\glcanvas.zip
27 erase %dest\ogl3.zip
28 erase %dest\tex2rtf2.zip
29 erase %dest\jpeg.zip
30
31 if direxist %dest\wx deltree /Y %dest\wx
32
33 cd %src
34 echo Zipping...
35
36 zip32 -@ %dest\wx%version%_gen.zip < %src\distrib\msw\generic.rsp
37 zip32 -@ -u %dest\wx%version%_gen.zip < %src\distrib\msw\makefile.rsp
38 zip32 -@ %dest\wx%version%_msw.zip < %src\distrib\msw\msw.rsp
39 zip32 -@ -u %dest\wx%version%_msw.zip < %src\distrib\msw\makefile.rsp
40 zip32 -@ %dest\wx%version%_gtk.zip < %src\distrib\msw\gtk.rsp
41 zip32 -@ -u %dest\wx%version%_gtk.zip < %src\distrib\msw\makefile.rsp
42 zip32 -@ %dest\wx%version%_stubs.zip < %src\distrib\msw\stubs.rsp
43 zip32 -@ %dest\wx%version%_mot.zip < %src\distrib\msw\motif.rsp
44 zip32 -@ -u %dest\wx%version%_mot.zip < %src\distrib\msw\makefile.rsp
45 zip32 -@ %dest\wx%version%_user.zip < %src\distrib\msw\user.rsp
46
47 zip32 -@ %dest\wx%version%_doc.zip < %src\distrib\msw\docsrc.rsp
48 zip32 -@ %dest\wx%version%_hlp.zip < %src\distrib\msw\wx_hlp.rsp
49 zip32 -@ %dest\wx%version%_htm.zip < %src\distrib\msw\wx_html.rsp
50 zip32 -@ %dest\wx%version%_pdf.zip < %src\distrib\msw\wx_pdf.rsp
51 zip32 -@ %dest\wx%version%_wrd.zip < %src\distrib\msw\wx_word.rsp
52
53 rem VC++ project files
54 zip32 -@ %dest\wx%version%_vc.zip < %src\distrib\msw\vc.rsp
55
56 rem BC++ project files
57 zip32 -@ %dest\wx%version%_bc.zip < %src\distrib\msw\bc.rsp
58
59 rem CodeWarrior project files
60 zip32 -@ %dest\wx%version%_cw.zip < %src\distrib\msw\cw.rsp
61
62 rem OGL 3
63 zip32 -@ %dest\ogl3.zip < %src\distrib\msw\ogl.rsp
64
65 rem GLCanvas
66 zip32 -@ %dest\glcanvas.zip < %src\distrib\msw\glcanvas.rsp
67
68 rem Tex2RTF
69 zip32 -@ %dest\tex2rtf2.zip < %src\distrib\msw\tex2rtf.rsp
70
71 rem wxTreeLayout
72 zip32 -@ %dest\treedraw.zip < %src\distrib\msw\wxtree.rsp
73
74 rem JPEG source
75 zip32 -@ %dest\jpeg.zip < %src\distrib\msw\jpeg.rsp
76
77 copy %src\docs\changes.txt %dest
78 copy %src\docs\msw\install.txt %dest\install_msw.txt
79 copy %src\docs\motif\install.txt %dest\install_motif.txt
80 copy %src\docs\gtk\install.txt %dest\install_gtk.txt
81 copy %src\docs\readme.txt %dest
82 copy %src\docs\motif\makewxmotif %dest
83 copy %src\docs\gtk\makewxgtk %dest
84
85 :dounzip
86
87 cd %dest
88
89 Rem Skip WISE setup if wise is 0.
90 if "%wise" == "0" goto end
91
92 rem Unzip the Windows files into 'wx'
93 mkdir %dest\wx
94
95 Rem After this change of directory, we're in the
96 Rem temporary 'wx' directory and not acting on
97 Rem the source wxWindows directory.
98 cd %dest\wx
99 unzip32 -o ..\wx%version%_msw.zip
100 unzip32 -o ..\wx%version%_gen.zip
101 unzip32 -o ..\wx%version%_vc.zip
102 unzip32 -o ..\wx%version%_bc.zip
103 unzip32 -o ..\wx%version%_hlp.zip
104 Rem Need Word file, for Remstar DB classes
105 unzip32 -o ..\wx%version%_wrd.zip
106 unzip32 -o ..\glcanvas.zip
107 unzip32 -o ..\treedraw.zip
108 unzip32 -o ..\ogl3.zip
109 unzip32 -o ..\jpeg.zip
110
111 rem Now delete a few files that are unnecessary
112 erase /Y *.in *.spec *.guess *.sub mkinstalldirs modules install-sh *.sh
113 erase /SY Makefile.in
114 erase /Y docs\pdf\ogl.pdf
115 deltree /Y docs\html\ogl
116
117 rem Now copy some binary files to 'bin'
118 if not isdir bin mkdir bin
119 copy %src\bin\dialoged.exe bin
120 copy %src\docs\winhelp\dialoged.hlp %src\docs\winhelp\dialoged.cnt bin
121
122 rem Time to regenerate the WISE install script, wxwin2.wse.
123 rem NB: if you've changed wxwin2.wse using WISE, call splitwise.exe
124 rem from within distrib\msw, to split off wisetop.txt and wisebott.txt.
125 echo Calling 'makewise' to generate wxwin2.wse...
126 call %WXWIN\distrib\msw\makewise.bat
127
128 rem Now invoke WISE install on the new wxwin2.wse
129 set wisecmd="c:\Program Files\wise\wise32.exe" /C %WXWIN\distrib\msw\wxwin2.wse
130 echo Invoking %wisecmd...
131 start /w %wisecmd
132
133 cd %dest
134
135 echo wxWindows archived.
136 goto end
137
138 :usage
139 echo DOS wxWindows distribution. Zips up all GTK/Motif/MSW/doc files,
140 echo and optionally makes a deliver\wx directory and a setup.exe
141 echo if you specify 'wise'.
142 echo.
143 echo Usage: zipdist [wise]
144
145 :end