cd .. set extras=%COMBINATOR_PROJECTS%\mv3d\buildfiles set twisted=%COMBINATOR_PROJECTS%\twisted\trunk\twisted set divmod=%COMBINATOR_PROJECTS%\divmod\trunk rem set lib=%USERPROFILE%\Python\Lib\site-packages set lib=c:\python26\lib\site-packages set lib2=c:\python26\lib\site-packages set plugins=c:\program files (x86)\PythonOgre\plugins set zip="c:\program files\7-zip\7z.exe" set nsis="c:\program files (x86)\nsis\makensis.exe" echo "-- Cleaning" del /S *.tmp del /S *.pyc echo "-- Building Client EXE" rmdir /S /Q dist-client copy %extras%\*.dll . if errorlevel 1 goto END copy "%lib2%\ogre\renderer\ogre\*.dll" . if errorlevel 1 goto END python setup_client.py py2exe if errorlevel 1 goto END del dist-server\mswdock.dll del dist-server\powrprof.dll echo "-- Building Server EXE" rmdir /S /Q dist-server python setup_server.py py2exe if errorlevel 1 goto END del dist-server\mswdock.dll del dist-server\powrprof.dll echo "-- Building Tools EXEs" rmdir /S /Q dist-tools python setup_tools.py py2exe if errorlevel 1 goto END del dist-server\mswdock.dll del dist-server\powrprof.dll echo "-- Managing Zip Archive" %zip% d dist-client\library.zip mv3d %zip% d dist-client\library.zip twisted %zip% d dist-client\library.zip ogre %zip% d dist-client\library.zip pyasn1 %zip% d dist-server\library.zip mv3d %zip% d dist-server\library.zip twisted %zip% d dist-server\library.zip pyasn1 %zip% d dist-tools\library.zip mv3d %zip% d dist-tools\library.zip twisted %zip% d dist-tools\library.zip ogre %zip% d dist-tools\library.zip pyasn1 echo "-- Copying files Client" xcopy /Y /E mv3d dist-client\mv3d\ if errorlevel 1 goto END xcopy /Y /E %twisted% dist-client\twisted\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Axiom\axiom dist-client\axiom\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Epsilon\epsilon dist-client\epsilon\ if errorlevel 1 goto END xcopy /Y /E %lib%\pyasn1 dist-client\pyasn1\ if errorlevel 1 goto END xcopy /Y /E media dist-client\media\ if errorlevel 1 goto END xcopy /Y /E templates dist-client\templates\ if errorlevel 1 goto END xcopy /Y /E "%lib2%\pysqlite2" dist-client\pysqlite2\ if errorlevel 1 goto END xcopy /Y /E "%lib2%\ogre" dist-client\ogre\ if errorlevel 1 goto END copy "%plugins%\*.dll" dist-client\ if errorlevel 1 goto END copy "%lib2%\ogre\gui\CEGUI\*.dll" dist-client\ if errorlevel 1 goto END copy "%lib2%\ogre\renderer\OGRE\*.dll" dist-client\ if errorlevel 1 goto END rem copy "%lib2%\ogre\sound\OgreAL\*.dll" dist-client\ rem if errorlevel 1 goto END mkdir dist-client\conf copy conf\client.conf dist-client\conf if errorlevel 1 goto END copy conf\keymap.conf dist-client\conf if errorlevel 1 goto END copy conf\*.cfg dist-client\conf if errorlevel 1 goto END copy LICENSE dist-client if errorlevel 1 goto END copy README dist-client if errorlevel 1 goto END copy release-notes.txt dist-client if errorlevel 1 goto END copy %extras%\dxwebsetup.exe dist-client if errorlevel 1 goto END copy %extras%\vcredist_x86.exe dist-client if errorlevel 1 goto END echo "-- Removing server" rmdir /s /q dist-client\mv3d\server if errorlevel 1 goto END echo > dist-client\CEGUI.log echo "-- Creating plugins.cfg" echo # Autogenerated by winbuild.bat > dist-client\conf\plugins.cfg echo PluginFolder=. >> dist-client\conf\plugins.cfg echo Plugin=RenderSystem_GL.dll >> dist-client\conf\plugins.cfg echo Plugin=RenderSystem_Direct3D9.dll >> dist-client\conf\plugins.cfg echo Plugin=Plugin_ParticleFX.dll >> dist-client\conf\plugins.cfg echo Plugin=Plugin_BSPSceneManager.dll >> dist-client\conf\plugins.cfg echo Plugin=Plugin_OctreeSceneManager.dll >> dist-client\conf\plugins.cfg echo Plugin=Plugin_CgProgramManager.dll >> dist-client\conf\plugins.cfg echo "-- Copying files Server" xcopy /Y /E mv3d dist-server\mv3d\ if errorlevel 1 goto END xcopy /Y /E twisted dist-server\twisted\ if errorlevel 1 goto END xcopy /Y /E %twisted% dist-server\twisted\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Axiom\axiom dist-server\axiom\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Epsilon\epsilon dist-server\epsilon\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Nevow\nevow dist-server\nevow\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Nevow\formless dist-server\formless\ if errorlevel 1 goto END xcopy /Y /E %lib%\pyasn1 dist-server\pyasn1\ if errorlevel 1 goto END xcopy /Y /E media dist-server\media\ if errorlevel 1 goto END xcopy /Y /E templates dist-server\templates\ if errorlevel 1 goto END xcopy /Y /E "%lib2%\pysqlite2" dist-server\pysqlite2\ if errorlevel 1 goto END mkdir dist-server\conf copy conf\server.conf dist-server\conf if errorlevel 1 goto END copy conf\overseer.conf dist-server\conf if errorlevel 1 goto END xcopy /Y /E conf\overseer dist-server\conf\overseer\ if errorlevel 1 goto END xcopy /Y /E templates dist-server if errorlevel 1 goto END xcopy /Y /E "conf\overseer" dist-server\conf if errorlevel 1 goto END copy privkey.pem dist-server if errorlevel 1 goto END copy cacert.pem dist-server if errorlevel 1 goto END copy LICENSE dist-server if errorlevel 1 goto END copy README dist-server if errorlevel 1 goto END copy release-notes.txt dist-server echo "-- Copying files Tools" xcopy /Y /E mv3d dist-tools\mv3d\ if errorlevel 1 goto END xcopy /Y /E %twisted% dist-tools\twisted\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Axiom\axiom dist-tools\axiom\ if errorlevel 1 goto END xcopy /Y /E %divmod%\Epsilon\epsilon dist-tools\epsilon\ if errorlevel 1 goto END xcopy /Y /E %lib%\pyasn1 dist-tools\pyasn1\ if errorlevel 1 goto END xcopy /Y /E media dist-tools\media\ if errorlevel 1 goto END xcopy /Y /E templates dist-tools\templates\ if errorlevel 1 goto END xcopy /Y /E "%lib2%\pysqlite2" dist-tools\pysqlite2\ if errorlevel 1 goto END xcopy /Y /E "%lib2%\ogre" dist-tools\ogre\ if errorlevel 1 goto END copy "%plugins%\*.dll" dist-tools\ if errorlevel 1 goto END copy "%lib2%\ogre\gui\CEGUI\*.dll" dist-tools\ if errorlevel 1 goto END copy "%lib2%\ogre\renderer\OGRE\*.dll" dist-tools\ if errorlevel 1 goto END rem copy "%lib2%\ogre\sound\OgreAL\*.dll" dist-tools\ rem if errorlevel 1 goto END mkdir dist-tools\conf if errorlevel 1 goto END copy conf\tool.conf dist-tools\conf if errorlevel 1 goto END copy conf\upload.conf dist-tools\conf if errorlevel 1 goto END copy conf\patcher.conf dist-tools\conf if errorlevel 1 goto END xcopy /Y /E templates dist-server if errorlevel 1 goto END copy conf\*.cfg dist-tools\conf if errorlevel 1 goto END copy LICENSE dist-tools if errorlevel 1 goto END copy README dist-tools if errorlevel 1 goto END copy release-notes.txt dist-tools if errorlevel 1 goto END copy %extras%\dxwebsetup.exe dist-tools if errorlevel 1 goto END copy %extras%\vcredist_x86.exe dist-tools if errorlevel 1 goto END echo "-- Creating plugins.cfg" echo # Autogenerated by winbuild.bat > dist-tools\conf\plugins.cfg echo PluginFolder=. >> dist-tools\conf\plugins.cfg echo Plugin=RenderSystem_GL.dll >> dist-tools\conf\plugins.cfg echo Plugin=RenderSystem_Direct3D9.dll >> dist-tools\conf\plugins.cfg echo Plugin=Plugin_ParticleFX.dll >> dist-tools\conf\plugins.cfg echo Plugin=Plugin_BSPSceneManager.dll >> dist-tools\conf\plugins.cfg echo Plugin=Plugin_OctreeSceneManager.dll >> dist-tools\conf\plugins.cfg echo Plugin=Plugin_CgProgramManager.dll >> dist-tools\conf\plugins.cfg echo "-- Building installer!" %nsis% bin/client.nsi if errorlevel 1 goto END %nsis% bin/tools.nsi if errorlevel 1 goto END %nsis% bin/server.nsi if errorlevel 1 goto END echo "-- Building source release!" mkdir sourcerelease echo "made dir" if errorlevel 1 goto END cd sourcerelease echo "cd to it " svn co http://www.mv3d.com/svn/mv3d/trunk/ echo "svn co" if errorlevel 1 goto END rename trunk MV3D echo "rename" if errorlevel 1 goto END %zip% a -r mv3d-source.zip MV3D echo "zipzip" if errorlevel 1 goto END move mv3d-source.zip ..\ echo "move" if errorlevel 1 goto END cd .. echo "cd.." rmdir /s /q sourcerelease echo "rmdir" if errorlevel 1 goto END echo "-- Building panda!" cd bin call pandabuild.bat cd .. echo "-- Building Dev Installer!" mkdir buildfiles xcopy /Y /E %extras%\*.* buildfiles if errorlevel 1 goto END %nsis% bin/devenv.nsi if errorlevel 1 goto END echo "-- Completed successfully!" :END cd bin