Revision: 468
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=468&view=rev
Author: andy_miller
Date: 2007-11-12 23:16:37 -0800 (Mon, 12 Nov 2007)
Log Message:
-----------
Added Watermesh and Ofusion (testing)\nGeneral merge to my working environment
Modified Paths:
--------------
trunk/python-ogre/scripts/MakeRelease.bat
trunk/python-ogre/scripts/UpdateDLLs.bat
Added Paths:
-----------
trunk/python-ogre/scripts/01-RetrieveSource.py
trunk/python-ogre/scripts/compilesource.bat
trunk/python-ogre/scripts/logger.py
trunk/python-ogre/scripts/test/
trunk/python-ogre/scripts/testlog.py
trunk/python-ogre/scripts/updatesource.bat
Added: trunk/python-ogre/scripts/01-RetrieveSource.py
===================================================================
--- trunk/python-ogre/scripts/01-RetrieveSource.py (rev 0)
+++ trunk/python-ogre/scripts/01-RetrieveSource.py 2007-11-13 07:16:37 UTC (rev 468)
@@ -0,0 +1,66 @@
+#!/bin/python
+# Part of the Python-Ogre installation
+
+import os,sys,urllib
+import logging
+import logger
+print sys.argv
+
+log = logging.getLogger('PO.' + sys.argv[0].split('.')[0])
+log.info ("Retrieving Sources")
+
+root = os.getcwd() # our base location
+
+RetrieveUrls = [
+["wget", "http://developer.download.nvidia.com/cg/Cg_1.5/1.5.0/0022/Cg-1.5_Aug2007_x86.tar.gz",''],
+["wget", "http://www.cmake.org/files/v2.4/cmake-2.4.6-Linux-i386.tar.gz",''],
+["wget", "http://prdownloads.sourceforge.net/freeimage/FreeImage393.zip",''],
+["wget", "http://prdownloads.sourceforge.net/crayzedsgui/CEGUI-0.5.0b.tar.gz",''],
+["wget", "http://prdownloads.sourceforge.net/wgois/ois-1.0RC1.tar.gz",''],
+["wget", "http://prdownloads.sourceforge.net/boost/boost-jam-3.1.13-1-linuxx86.tgz",''],
+["wget", "http://prdownloads.sourceforge.net/scons/scons-0.96.96.tar.gz",''],
+["wget", "http://downloads.sourceforge.net/scons/scons-0.97.0d20070918.tar.gz",''],
+["wget", "http://prdownloads.sourceforge.net/ogre/ogre-linux_osx-v1-4-5.tar.bz2",''],
+["wget", "http://prdownloads.sourceforge.net/opende/ode-src-0.8.zip",''],
+["wget", "http://downloads.sourceforge.net/boost/boost_1_34_0.tar.bz2",''],
+["wget", "http://www.newtondynamics.com/downloads/newtonLinux-1.53.tar.gz",''],
+["wget", "http://www.openal.org/openal_webstf/downloads/openal-0.0.8.tar.gz",''],
+["wget", "http://www.openal.org/openal_webstf/downloads/freealut-1.1.0.tar.gz", ''],
+["wget", "http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz",''],
+["wget", "http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz",''],
+["wget", "http://downloads.sourceforge.net/zziplib/zziplib-0.13.49.tar.bz2",''],
+['svn', "https://pygccxml.svn.sourceforge.net/svnroot/pygccxml pygccxml",""],
+['svn', "https://python-ogre.svn.sourceforge.net/svnroot/python-ogre/trunk/python-ogre python-ogre",""],
+['cvs', "-z3 -q -d :pserver:an...@ww...:/cvsroot/GCC_XML co gccxml",""],
+['cvs', "-z3 -q -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogreode",""],
+['cvs', "-z3 -q -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogrenewt",""]
+]
+
+try:
+ os.mkdir( os.path.join(root, 'downloads') )
+except:
+ pass
+
+for mode, url, extra in RetrieveUrls:
+
+ if mode == "wget": ## do a standard http get on the file
+ os.chdir ( os.path.join(root, 'downloads') )
+ destfile = url.split('/')[-1]
+ log.info ("Retrieving " + destfile + " from " + url )
+ (filename, headers) = urllib.urlretrieve (url, destfilename)
+ os.chdir ( root )
+
+RetrieveSvns = [
+"https://pygccxml.svn.sourceforge.net/svnroot/pygccxml pygccxml",
+"https://python-ogre.svn.sourceforge.net/svnroot/python-ogre/trunk/python-ogre python-ogre",
+
+cvs -z3 -q -d :pserver:an...@ww...:/cvsroot/GCC_XML co gccxml
+echo " -- getting ogreode"
+cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogreode
+echo " -- getting ogrenewt"
+cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/ogre co -P ogreaddons/ogrenewt
+echo ""
+echo "======= Sources Retrieved ======="
+echo ""
+
+
Modified: trunk/python-ogre/scripts/MakeRelease.bat
===================================================================
--- trunk/python-ogre/scripts/MakeRelease.bat 2007-11-11 03:11:11 UTC (rev 467)
+++ trunk/python-ogre/scripts/MakeRelease.bat 2007-11-13 07:16:37 UTC (rev 468)
@@ -16,7 +16,7 @@
xcopy ..\plugins ..\..\PythonOgreRelease\plugins
xcopy ..\docs ..\..\PythonOgreRelease\docs
xcopy ..\tools ..\..\PythonOgreRelease\tools
-xcopy ..\ThirdParty ..\..\PythonOgreRelease\ThirdParty
+copy ..\ThirdParty ..\..\PythonOgreRelease\ThirdParty
copy ..\*.rtf ..\..\PythonOgreRelease
copy ..\COPYING ..\..\PythonOgreRelease
copy ..\*.gpl ..\..\PythonOgreRelease
@@ -26,7 +26,7 @@
del ..\..\PythonOgreRelease\1 /s
del ..\..\PythonOgreRelease\2 /s
del ..\..\PythonOgreRelease\ogre.cfg /s
-for /r ..\..\PythonOgreRelease\ %1 in (*) do touch %1
+for /r ..\..\PythonOgreRelease\ %%1 in (*) do touch %%1
rem rmdir /s /q ..\..\PythonOgreRelease\demos\gui\tofix
rem rmdir /s /q ..\..\PythonOgreRelease\demos\ogre\tofix
Modified: trunk/python-ogre/scripts/UpdateDLLs.bat
===================================================================
--- trunk/python-ogre/scripts/UpdateDLLs.bat 2007-11-11 03:11:11 UTC (rev 467)
+++ trunk/python-ogre/scripts/UpdateDLLs.bat 2007-11-13 07:16:37 UTC (rev 468)
@@ -43,7 +43,7 @@
copy /y %ogreode%\loader\lib\Release\OgreOde_Loader.dll %package%\physics\OgreOde
copy /y %ogreode%\prefab\lib\Release\OgreOde_Prefab.dll %package%\physics\OgreOde
rem Physx
-copy /y %physx%\Nx*.dll %package%\physics\PhysX
+copy /y %physx%\Nx*.dll %package%\physics\NxOgre
copy /y %physx%\Ph*.dll %package%\physics\PhysX
rem Theora
copy /y %theora%\Plugin_TheoraVideoSystem.dll ..\plugin
Added: trunk/python-ogre/scripts/compilesource.bat
===================================================================
--- trunk/python-ogre/scripts/compilesource.bat (rev 0)
+++ trunk/python-ogre/scripts/compilesource.bat 2007-11-13 07:16:37 UTC (rev 468)
@@ -0,0 +1,16 @@
+setlocal
+pushd
+set _VCBUILD="c:\\Program Files\\Microsoft Visual Studio 8\\vc\\vcpackages\\vcbuild.exe"
+set _ROOT=c:\\development
+call vcvars32
+cd %_ROOT%\\ogrenew
+%_VCBUILD% /useenv Ogre_vc8.sln "Release|Win32"
+rem cd %_ROOT%\\NxOgre\\NxOgre
+rem %_VCBUILD% /useenv NxOgre.VC8.Windows.sln "Release|Win32"
+cd %_ROOT%\\ogreaddons\\ogreode\\scripts\\vc8
+%_VCBUILD% /useenv OgreOde_CVS.sln "Release|Win32"
+cd %_ROOT%\\ogreaddons\\ogrenewt
+%_VCBUILD% /useenv OgreNewt.sln "Release|Win32"
+
+popd
+endlocal
Added: trunk/python-ogre/scripts/logger.py
===================================================================
--- trunk/python-ogre/scripts/logger.py (rev 0)
+++ trunk/python-ogre/scripts/logger.py 2007-11-13 07:16:37 UTC (rev 468)
@@ -0,0 +1,18 @@
+import logging
+
+# set up logging to file
+logging.basicConfig(level=logging.DEBUG,
+ format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
+ ##datefmt='%m-%d %H:%M',
+ filename='./PythonOgreBuild.log',
+ filemode='w')
+# define a Handler which writes INFO messages or higher to the sys.stderr
+console = logging.StreamHandler()
+console.setLevel(logging.INFO)
+# set a format which is simpler for console use
+formatter = logging.Formatter('%(name)-12s: %(levelname)-8s %(message)s')
+# tell the handler to use this format
+console.setFormatter(formatter)
+# add the handler to the root logger
+logging.getLogger('').addHandler(console)
+
Added: trunk/python-ogre/scripts/testlog.py
===================================================================
--- trunk/python-ogre/scripts/testlog.py (rev 0)
+++ trunk/python-ogre/scripts/testlog.py 2007-11-13 07:16:37 UTC (rev 468)
@@ -0,0 +1,13 @@
+import logging
+import logger
+logger1 = logging.getLogger('myapp.area1')
+logger2 = logging.getLogger('myapp.area2')
+import sys
+print sys.argv[0]
+print sys.argv[0].split('.')[0]
+
+logger1.debug('Quick zephyrs blow, vexing daft Jim.')
+logger1.info('How quickly daft jumping zebras vex.')
+logger2.warning('Jail zesty vixen who grabbed pay from quack.')
+logger2.error('The five boxing wizards jump quickly.')
+
Added: trunk/python-ogre/scripts/updatesource.bat
===================================================================
--- trunk/python-ogre/scripts/updatesource.bat (rev 0)
+++ trunk/python-ogre/scripts/updatesource.bat 2007-11-13 07:16:37 UTC (rev 468)
@@ -0,0 +1,54 @@
+setlocal
+pushd
+set _SVN="c:\apps\svn-win32-1.4.5\bin\svn.exe"
+set _CVS="c:\Program Files\cvsnt\cvs.exe"
+set _VCBUILD="c:\Program Files\Microsoft Visual Studio 8\vc\vcpackages\vcbuild.exe"
+set _ROOT=c:\development
+set _TP=c:\development\pywork\ThirdParty
+
+cd %_ROOT%\ogrenew
+%_CVS% up
+cd %_ROOT%\ogreaddons\ogreode
+%_CVS% up
+
+cd %_ROOT%\NxOgre
+%_SVN% up
+del /q %_TP%\nxogre
+xcopy /s /y NxOgre\include %_TP%\nxogre
+xcopy /s /y NxOgre\source %_TP%\nxogre
+
+cd %_ROOT%\ogreal
+%_SVN% up
+del /q %_TP%\ogreal
+copy include\*.h %_TP%\ogreal
+copy src\*.cpp %_TP%\ogreal
+
+cd %_ROOT%\QuickGui
+%_SVN% up
+del /q %_TP%\quickgui
+copy QuickGui\include\*.h %_TP%\quickgui
+copy QuickGui\src\*.cpp %_TP%\quickgui
+
+cd %_ROOT%\caelum
+%_SVN% up
+del /q %_TP%\caelum
+copy trunk\Caelum\main\include\*.h %_TP%\caelum
+copy trunk\Caelum\main\src\*.cpp %_TP%\caelum
+
+cd %_ROOT%\ogreaddons\ogrebullet
+%_CVS% up
+del /q /s %_TP%\ogrebullet\Collisions
+del /q /s %_TP%\ogrebullet\Dynamics
+xcopy /s Collisions\include %_TP%\ogrebullet\Collisions
+xcopy /s Collisions\src %_TP%\ogrebullet\Collisions
+xcopy /s Dynamics\include %_TP%\ogrebullet\Dynamics
+xcopy /s Dynamics\src %_TP%\ogrebullet\Dynamics
+
+cd %_ROOT%\ogreaddons\forests
+%_CVS% up
+del /q %_TP%\forests
+copy include\*.h %_TP%\forests
+copy source\*.cpp %_TP%\forests
+
+popd
+endlocal
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|