2000-07-15 15:51:35 -04:00
|
|
|
@echo off
|
|
|
|
rem Builds a zip containing stuff needed to link with the wxWindows DLL
|
2002-08-28 16:02:20 -04:00
|
|
|
rem shipped with wxPython. This should allow other developers to create apps
|
2000-07-15 15:51:35 -04:00
|
|
|
rem or extensions that can share the same DLL.
|
|
|
|
|
2001-12-13 13:55:19 -05:00
|
|
|
setlocal
|
2002-08-28 16:02:20 -04:00
|
|
|
set BASE=_distrib_zip\wxPython-%1
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2002-08-28 16:02:20 -04:00
|
|
|
rem **** Make a directory to build up a distribution tree
|
|
|
|
mkdir _distrib_zip
|
2001-12-13 13:55:19 -05:00
|
|
|
mkdir %BASE%
|
2000-07-15 15:51:35 -04:00
|
|
|
|
|
|
|
|
2002-08-28 16:02:20 -04:00
|
|
|
rem *** copy files
|
|
|
|
copy distrib\README.devel.txt %BASE%\README.txt
|
|
|
|
|
2004-03-12 15:17:22 -05:00
|
|
|
|
2002-08-28 16:02:20 -04:00
|
|
|
mkdir %BASE%\include
|
|
|
|
mkdir %BASE%\include\wx
|
2004-03-12 15:17:22 -05:00
|
|
|
copy /s %WXWIN%\include\wx\* %BASE%\include\wx
|
|
|
|
|
|
|
|
copy /s %WXWIN%\contrib\include\wx\gizmos %BASE%\include\wx\gizmos
|
|
|
|
copy /s %WXWIN%\contrib\include\wx\ogl %BASE%\include\wx\ogl
|
|
|
|
copy /s %WXWIN%\contrib\include\wx\stc %BASE%\include\wx\stc
|
|
|
|
|
|
|
|
copy /s %WXWIN%\wxPython\include\wx\* %BASE%\include\wx
|
|
|
|
mkdir %BASE%\include\wx\wxPython\i_files
|
|
|
|
copy %WXWIN%\wxPython\src\*.i %BASE%\include\wx\wxPython\i_files
|
2005-03-24 11:42:40 -05:00
|
|
|
copy %WXWIN%\wxPython\src\*.py %BASE%\include\wx\wxPython\i_files
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2002-08-28 16:02:20 -04:00
|
|
|
mkdir %BASE%\lib
|
2004-03-12 15:17:22 -05:00
|
|
|
mkdir %BASE%\lib\vc_dll
|
|
|
|
mkdir %BASE%\lib\vc_dll\mswh
|
|
|
|
mkdir %BASE%\lib\vc_dll\mswuh
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2004-03-12 15:17:22 -05:00
|
|
|
copy /s %WXWIN%\lib\vc_dll\mswh\* %BASE%\lib\vc_dll\mswh
|
|
|
|
copy /s %WXWIN%\lib\vc_dll\mswuh\* %BASE%\lib\vc_dll\mswuh
|
|
|
|
copy %WXWIN%\lib\vc_dll\* %BASE%\lib\vc_dll
|
2002-08-28 16:02:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
rem *** remove unneeded files
|
2004-03-12 15:17:22 -05:00
|
|
|
cd _distrib_zip
|
|
|
|
|
|
|
|
ffind /SB wx*d_*.* > del-files
|
|
|
|
ffind /SB wx*d.* >> del-files
|
|
|
|
ffind /SB .#* >> del-files
|
|
|
|
ffind /SB .cvsignore >> del-files
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2004-03-12 15:17:22 -05:00
|
|
|
for %f in (@del-files) do rm -fv %f
|
|
|
|
rem del /y @del-files
|
2000-07-15 15:51:35 -04:00
|
|
|
|
2001-12-13 13:55:19 -05:00
|
|
|
|
2004-03-12 15:17:22 -05:00
|
|
|
ffind /SB /A:D CVS > del-dirs
|
|
|
|
echo wxPython-%1\include\wx\cocoa >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\gtk >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\mac >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\mgl >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\motif >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\os2 >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\univ >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\unix >> del-dirs
|
|
|
|
echo wxPython-%1\include\wx\x11 >> del-dirs
|
|
|
|
|
|
|
|
for %d in (@del-dirs) do rm -rfv %d
|
|
|
|
rem del /sxzy @del-dirs
|
|
|
|
|
|
|
|
rm del-files
|
|
|
|
rm del-dirs
|
|
|
|
|
2006-11-20 22:39:46 -05:00
|
|
|
rem *** bundle it all up TODO: don't hard-code the 2.8
|
|
|
|
tar cvf ../dist/wxPython2.8-win32-devel-%1.tar wxPython-%1
|
|
|
|
bzip2 -9 ../dist/wxPython2.8-win32-devel-%1.tar
|
2001-12-13 13:55:19 -05:00
|
|
|
|
2002-08-28 16:02:20 -04:00
|
|
|
rem *** cleanup
|
|
|
|
cd ..
|
2004-03-12 15:17:22 -05:00
|
|
|
rm -rf _distrib_zip
|
2001-12-13 13:55:19 -05:00
|
|
|
|
|
|
|
endlocal
|
2000-07-15 15:51:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|