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
path: root/tools
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-11-15 15:16:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-11-15 15:16:03 +0300
commitc6667c53e3134f06ce208094e67fb0081ef8d3e7 (patch)
tree6f7a1ce182622f723e873e2f689b5dcf6a9ae4c2 /tools
parent33e5520ab3e865be357e07afe42df8d6a90e249a (diff)
put the revision number in the splash screen (scons and make)
Diffstat (limited to 'tools')
-rw-r--r--tools/Blender.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index a3452f4d593..58f5ea7b661 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -191,12 +191,15 @@ 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
+
obj = []
if lenv['BF_BUILDINFO']==1: #user_options_dict['USE_BUILDINFO'] == 1:
if sys.platform=='win32':
build_info_file = open("source/creator/winbuildinfo.h", 'w')
build_info_file.write("char *build_date=\"%s\";\n"%build_date)
build_info_file.write("char *build_time=\"%s\";\n"%build_time)
+ build_info_file.write("char *build_rev=\"%s\";\n"%build_rev)
build_info_file.write("char *build_platform=\"win32\";\n")
build_info_file.write("char *build_type=\"dynamic\";\n")
build_info_file.close()
@@ -205,6 +208,7 @@ def buildinfo(lenv, build_type):
lenv.Append (CPPDEFINES = ['BUILD_TIME=\'"%s"\''%(build_time),
'BUILD_DATE=\'"%s"\''%(build_date),
'BUILD_TYPE=\'"dynamic"\'',
+ 'BUILD_REV=\'"%s"\''%(build_rev),
'NAN_BUILDINFO',
'BUILD_PLATFORM=\'"%s"\''%(sys.platform)])
obj = [lenv.Object (root_build_dir+'source/creator/%s_buildinfo'%build_type,