apply back 335 and 336, will need to update deps and put a zip out

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@343 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
TTimo
2010-11-26 19:50:08 +00:00
parent 0152053e52
commit dc4e125df2
8 changed files with 250 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
import sys, traceback, platform, re, commands, platform
import sys, traceback, platform, re, commands, platform, subprocess
if __name__ != '__main__':
from SCons.Script import *
@@ -250,14 +250,11 @@ class Config:
def CheckoutOrUpdate( self, svnurl, path ):
if ( os.path.exists( path ) ):
# NOTE: check the svnurl matches?
cmd = 'svn update "%s"' % path
print cmd
cmd = [ 'svn', 'update', path ]
else:
cmd = 'svn checkout %s "%s"' % ( svnurl, path )
ret = os.system( cmd )
if ( ret != 0 ):
raise Exception( 'checkout or update failed' )
cmd = [ 'svn', 'checkout', svnurl, path ]
print( repr( cmd ) )
subprocess.check_call( cmd )
def FetchGamePaks( self, path ):