2 rem Builds a zip containing stuff needed to link with the wxWindows DLL
3 rem shipped with wxPython. This should allow other developers to create apps
4 rem or extensions that can share the same DLL.
7 set BASE
=_distrib_zip\wxPython
-%1
10 if %2 == "debug" set TYPE=d
13 if %2 == "debug" set DELTYPE
=h
15 rem **** Make a directory to build up a distribution tree
21 copy distrib\README.devel.txt
%BASE%\README.txt
25 mkdir %BASE%\include\wx
26 copy /s
%WXWIN%\include\wx\
* %BASE%\include\wx
28 copy /s
%WXWIN%\contrib\include\wx\gizmos
%BASE%\include\wx\gizmos
29 copy /s
%WXWIN%\contrib\include\wx\ogl
%BASE%\include\wx\ogl
30 copy /s
%WXWIN%\contrib\include\wx\stc
%BASE%\include\wx\stc
32 copy /s
%WXWIN%\wxPython\include\wx\
* %BASE%\include\wx
33 mkdir %BASE%\include\wx\wxPython\i_files
34 copy %WXWIN%\wxPython\src\
*.i
%BASE%\include\wx\wxPython\i_files
35 copy %WXWIN%\wxPython\src\
*.py
%BASE%\include\wx\wxPython\i_files
38 mkdir %BASE%\lib
\vc_dll
39 mkdir %BASE%\lib
\vc_dll\msw
%TYPE%
40 mkdir %BASE%\lib
\vc_dll\mswu
%TYPE%
42 copy /s
%WXWIN%\lib
\vc_dll\msw
%TYPE%\
* %BASE%\lib
\vc_dll\mswh
43 copy /s
%WXWIN%\lib
\vc_dll\mswu
%TYPE%\
* %BASE%\lib
\vc_dll\mswuh
44 copy %WXWIN%\lib
\vc_dll\
* %BASE%\lib
\vc_dll
47 rem *** remove unneeded files
50 ffind
/SB wx
*%DELTYPE%_
*.
* > del-files
51 ffind
/SB wx
*%DELTYPE%.
* >> del-files
52 ffind
/SB .#
* >> del-files
53 ffind
/SB .cvsignore
>> del-files
55 for %f in
(@
del-files) do rm
-fv
%f
59 ffind
/SB
/A
:D CVS
> del-dirs
60 echo wxPython
-%1\include\wx\cocoa
>> del-dirs
61 echo wxPython
-%1\include\wx\gtk
>> del-dirs
62 echo wxPython
-%1\include\wx\mac
>> del-dirs
63 echo wxPython
-%1\include\wx\mgl
>> del-dirs
64 echo wxPython
-%1\include\wx\motif
>> del-dirs
65 echo wxPython
-%1\include\wx\os2
>> del-dirs
66 echo wxPython
-%1\include\wx\univ
>> del-dirs
67 echo wxPython
-%1\include\wx\unix
>> del-dirs
68 echo wxPython
-%1\include\wx
\x11 >> del-dirs
70 for %d in
(@
del-dirs
) do rm
-rfv
%d
71 rem del /sxzy @del-dirs
76 rem *** bundle it all up TODO: don't hard-code the 2.8
78 if %2 == "debug" set EXT
="-debug"
79 tar cvf ..
/dist
/wxPython2.8
-win32
-devel
-%1%EXT
%.tar wxPython
-%1
80 bzip2
-9 ..
/dist
/wxPython2.8
-win32
-devel
-%1%EXT
%.tar