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 | |
cbfc9df6 RD |
9 | set TYPE=h |
10 | if %2 == "debug" set TYPE=d | |
11 | ||
12 | set DELTYPE=d | |
13 | if %2 == "debug" set DELTYPE=h | |
14 | ||
09740c31 RD |
15 | rem **** Make a directory to build up a distribution tree |
16 | mkdir _distrib_zip | |
c5e8ed23 | 17 | mkdir %BASE% |
f6bcfd97 | 18 | |
f6bcfd97 | 19 | |
09740c31 RD |
20 | rem *** copy files |
21 | copy distrib\README.devel.txt %BASE%\README.txt | |
22 | ||
951aa70e | 23 | |
09740c31 RD |
24 | mkdir %BASE%\include |
25 | mkdir %BASE%\include\wx | |
951aa70e RD |
26 | copy /s %WXWIN%\include\wx\* %BASE%\include\wx |
27 | ||
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 | |
951aa70e RD |
31 | |
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 | |
8a272d3d | 35 | copy %WXWIN%\wxPython\src\*.py %BASE%\include\wx\wxPython\i_files |
f6bcfd97 | 36 | |
09740c31 | 37 | mkdir %BASE%\lib |
951aa70e | 38 | mkdir %BASE%\lib\vc_dll |
cbfc9df6 RD |
39 | mkdir %BASE%\lib\vc_dll\msw%TYPE% |
40 | mkdir %BASE%\lib\vc_dll\mswu%TYPE% | |
f6bcfd97 | 41 | |
cbfc9df6 RD |
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 | |
951aa70e | 44 | copy %WXWIN%\lib\vc_dll\* %BASE%\lib\vc_dll |
09740c31 RD |
45 | |
46 | ||
47 | rem *** remove unneeded files | |
951aa70e RD |
48 | cd _distrib_zip |
49 | ||
cbfc9df6 RD |
50 | ffind /SB wx*%DELTYPE%_*.* > del-files |
51 | ffind /SB wx*%DELTYPE%.* >> del-files | |
951aa70e RD |
52 | ffind /SB .#* >> del-files |
53 | ffind /SB .cvsignore >> del-files | |
f6bcfd97 | 54 | |
951aa70e RD |
55 | for %f in (@del-files) do rm -fv %f |
56 | rem del /y @del-files | |
f6bcfd97 | 57 | |
c5e8ed23 | 58 | |
951aa70e RD |
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 | |
69 | ||
70 | for %d in (@del-dirs) do rm -rfv %d | |
71 | rem del /sxzy @del-dirs | |
72 | ||
73 | rm del-files | |
74 | rm del-dirs | |
75 | ||
0bb065f6 | 76 | rem *** bundle it all up TODO: don't hard-code the 2.8 |
cbfc9df6 RD |
77 | set EXT= |
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 | |
c5e8ed23 | 81 | |
09740c31 RD |
82 | rem *** cleanup |
83 | cd .. | |
951aa70e | 84 | rm -rf _distrib_zip |
c5e8ed23 RD |
85 | |
86 | endlocal | |
f6bcfd97 BP |
87 | |
88 | ||
89 |