]>
Commit | Line | Data |
---|---|---|
f6bcfd97 BP |
1 | @echo off |
2 | rem Builds a zip containing stuff needed to link with the wxWindows DLL | |
09740c31 | 3 | rem shipped with wxPython. This should allow other developers to create apps |
f6bcfd97 BP |
4 | rem or extensions that can share the same DLL. |
5 | ||
c5e8ed23 | 6 | setlocal |
09740c31 | 7 | set BASE=_distrib_zip\wxPython-%1 |
f6bcfd97 | 8 | |
09740c31 RD |
9 | rem **** Make a directory to build up a distribution tree |
10 | mkdir _distrib_zip | |
c5e8ed23 | 11 | mkdir %BASE% |
f6bcfd97 | 12 | |
f6bcfd97 | 13 | |
09740c31 RD |
14 | rem *** copy files |
15 | copy distrib\README.devel.txt %BASE%\README.txt | |
16 | ||
951aa70e | 17 | |
09740c31 RD |
18 | mkdir %BASE%\include |
19 | mkdir %BASE%\include\wx | |
951aa70e RD |
20 | copy /s %WXWIN%\include\wx\* %BASE%\include\wx |
21 | ||
22 | copy /s %WXWIN%\contrib\include\wx\gizmos %BASE%\include\wx\gizmos | |
23 | copy /s %WXWIN%\contrib\include\wx\ogl %BASE%\include\wx\ogl | |
24 | copy /s %WXWIN%\contrib\include\wx\stc %BASE%\include\wx\stc | |
951aa70e RD |
25 | |
26 | copy /s %WXWIN%\wxPython\include\wx\* %BASE%\include\wx | |
27 | mkdir %BASE%\include\wx\wxPython\i_files | |
28 | copy %WXWIN%\wxPython\src\*.i %BASE%\include\wx\wxPython\i_files | |
8a272d3d | 29 | copy %WXWIN%\wxPython\src\*.py %BASE%\include\wx\wxPython\i_files |
f6bcfd97 | 30 | |
09740c31 | 31 | mkdir %BASE%\lib |
951aa70e RD |
32 | mkdir %BASE%\lib\vc_dll |
33 | mkdir %BASE%\lib\vc_dll\mswh | |
34 | mkdir %BASE%\lib\vc_dll\mswuh | |
f6bcfd97 | 35 | |
951aa70e RD |
36 | copy /s %WXWIN%\lib\vc_dll\mswh\* %BASE%\lib\vc_dll\mswh |
37 | copy /s %WXWIN%\lib\vc_dll\mswuh\* %BASE%\lib\vc_dll\mswuh | |
38 | copy %WXWIN%\lib\vc_dll\* %BASE%\lib\vc_dll | |
09740c31 RD |
39 | |
40 | ||
41 | rem *** remove unneeded files | |
951aa70e RD |
42 | cd _distrib_zip |
43 | ||
44 | ffind /SB wx*d_*.* > del-files | |
45 | ffind /SB wx*d.* >> del-files | |
46 | ffind /SB .#* >> del-files | |
47 | ffind /SB .cvsignore >> del-files | |
f6bcfd97 | 48 | |
951aa70e RD |
49 | for %f in (@del-files) do rm -fv %f |
50 | rem del /y @del-files | |
f6bcfd97 | 51 | |
c5e8ed23 | 52 | |
951aa70e RD |
53 | ffind /SB /A:D CVS > del-dirs |
54 | echo wxPython-%1\include\wx\cocoa >> del-dirs | |
55 | echo wxPython-%1\include\wx\gtk >> del-dirs | |
56 | echo wxPython-%1\include\wx\mac >> del-dirs | |
57 | echo wxPython-%1\include\wx\mgl >> del-dirs | |
58 | echo wxPython-%1\include\wx\motif >> del-dirs | |
59 | echo wxPython-%1\include\wx\os2 >> del-dirs | |
60 | echo wxPython-%1\include\wx\univ >> del-dirs | |
61 | echo wxPython-%1\include\wx\unix >> del-dirs | |
62 | echo wxPython-%1\include\wx\x11 >> del-dirs | |
63 | ||
64 | for %d in (@del-dirs) do rm -rfv %d | |
65 | rem del /sxzy @del-dirs | |
66 | ||
67 | rm del-files | |
68 | rm del-dirs | |
69 | ||
1e45356c RD |
70 | rem *** bundle it all up TODO: don't hard-code the 2.5 |
71 | tar cvf ../dist/wxPython2.5-win32-devel-%1.tar wxPython-%1 | |
72 | gzip -9 ../dist/wxPython2.5-win32-devel-%1.tar | |
c5e8ed23 | 73 | |
09740c31 RD |
74 | rem *** cleanup |
75 | cd .. | |
951aa70e | 76 | rm -rf _distrib_zip |
c5e8ed23 RD |
77 | |
78 | endlocal | |
f6bcfd97 BP |
79 | |
80 | ||
81 |