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