]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/distrib/makedev.bat
make sure the dist dir is created
[wxWidgets.git] / wxPython / distrib / makedev.bat
index 15735fc6e04b22b20ba31d36936293b1af229ae6..f007113d025fff8ac352b39539bf500d55deff1a 100755 (executable)
@@ -1,41 +1,81 @@
 @echo off
 rem   Builds a zip containing stuff needed to link with the wxWindows DLL
 @echo off
 rem   Builds a zip containing stuff needed to link with the wxWindows DLL
-rem   shipped with wxPython.  This allows other developers to create apps
+rem   shipped with wxPython.  This should allow other developers to create apps
 rem   or extensions that can share the same DLL.
 
 rem   or extensions that can share the same DLL.
 
-mkdir wxWin
-mkdir wxWin\lib
-copy %WXWIN%\lib\*.lib wxWin\lib
-del wxWin\lib\*_d.lib
+setlocal
+set BASE=_distrib_zip\wxPython-%1
 
 
-mkdir wxWin\src
-copy %WXWIN%\src\makevc.env wxWin\src
-copy %WXWIN%\src\*.vc wxWin\src
+rem **** Make a directory to build up a distribution tree
+mkdir _distrib_zip
+mkdir %BASE%
 
 
-mkdir wxWin\src\msw
-mkdir wxWin\src\msw\ReleaseDLL
-copy %WXWIN%\src\msw\*.pch wxWin\src\msw
-del wxWin\src\msw\*_d.pch
-copy %WXWIN%\src\msw\ReleaseDLL\dummy*.obj wxWin\src\msw\ReleaseDLL
 
 
-mkdir wxWin\include
-mkdir wxWin\include\wx
-mkdir wxWin\include\wx\msw
-mkdir wxWin\include\wx\generic
-mkdir wxWin\include\wx\html
-mkdir wxWin\include\wx\protocol
+rem *** copy files
+copy distrib\README.devel.txt %BASE%\README.txt
 
 
-copy %WXWIN%\include\wx\*.* wxWin\include\wx
-copy /s %WXWIN%\include\wx\msw\* wxWin\include\wx\msw
-copy /s %WXWIN%\include\wx\generic\* wxWin\include\wx\generic
-copy /s %WXWIN%\include\wx\html\* wxWin\include\wx\html
-copy /s %WXWIN%\include\wx\protocol\* wxWin\include\wx\protocol
 
 
+mkdir %BASE%\include
+mkdir %BASE%\include\wx
+copy /s %WXWIN%\include\wx\*                 %BASE%\include\wx
 
 
-zip -r wxPython-dev-%1.zip wxWin
+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%\contrib\include\wx\xrc       %BASE%\include\wx\xrc
 
 
+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
 
 
-del /sx wxWin
+mkdir %BASE%\lib
+mkdir %BASE%\lib\vc_dll
+mkdir %BASE%\lib\vc_dll\mswh
+mkdir %BASE%\lib\vc_dll\mswuh
+
+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
+
+
+rem *** remove unneeded files
+cd _distrib_zip
+
+ffind /SB wx*d_*.*             >  del-files
+ffind /SB wx*d.*               >> del-files
+ffind /SB .#*                  >> del-files
+ffind /SB .cvsignore           >> del-files
+
+for %f in (@del-files) do      rm -fv %f
+rem del /y @del-files
+
+
+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
+
+rem *** bundle it all up
+tar cvf ../dist/wxPythonWIN32-devel-%1.tar wxPython-%1
+gzip -9 ../dist/wxPythonWIN32-devel-%1.tar
+
+rem *** cleanup
+cd ..
+rm -rf _distrib_zip
+
+endlocal