scons compiling fix:

When "svnversion" can't be found (as is usual for anyone running TortoiseSVN), build_revision info will be "", which breaks compiling. Worked around this for now by using "<UNKNOWN>" as this
This commit is contained in:
Joshua Leung 2010-08-30 00:49:23 +00:00
parent 57e0d677c6
commit 88f657f251
1 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,8 @@ def buildinfo(lenv, build_type):
build_date = time.strftime ("%Y-%m-%d")
build_time = time.strftime ("%H:%M:%S")
build_rev = os.popen('svnversion').read()[:-1] # remove \n
if build_rev == '':
build_rev = '<UNKNOWN>'
if lenv['BF_DEBUG']:
build_type = "Debug"
else: