Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2010-08-30 04:49:23 +0400
committerJoshua Leung <aligorith@gmail.com>2010-08-30 04:49:23 +0400
commit88f657f25165f3e560fe0ef829eeba85624d05be (patch)
tree7a05de05611094354bb0e78c32cd5912c888f3bc /build_files/scons
parent57e0d677c6b935950051748713788c6532c972fa (diff)
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
Diffstat (limited to 'build_files/scons')
-rw-r--r--build_files/scons/tools/Blender.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py
index a878a38f1eb..3748a3b02c2 100644
--- a/build_files/scons/tools/Blender.py
+++ b/build_files/scons/tools/Blender.py
@@ -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: