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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-11-19 13:01:00 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-11-19 13:01:00 +0400
commit46684d1ad2a9ea6c6eea2a2e4baf3c7c4aa3ecb5 (patch)
treea3c4a79bf464cf2bb5c0e22a38d153cd454ed0a9
parent1e479d1722df16fe62ed244ef248eb5f528bc908 (diff)
Initial tweaks to buildbot configuration
Pretty much sure more tweaks would be needed, but need this to get started.
-rw-r--r--build_files/scons/tools/btools.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py
index 607b761261c..f7a5eb8cf06 100644
--- a/build_files/scons/tools/btools.py
+++ b/build_files/scons/tools/btools.py
@@ -55,12 +55,12 @@ def get_version():
raise Exception("%s: missing version string" % fname)
-def get_revision():
- build_rev = os.popen('svnversion').read()[:-1] # remove \n
- if build_rev == '' or build_rev==None:
- build_rev = 'UNKNOWN'
+def get_hash():
+ build_hash = os.popen('git rev-parse --short HEAD').read().strip()
+ if build_hash == '' or build_hash == None:
+ build_hash = 'UNKNOWN'
- return 'r' + build_rev
+ return build_hash
# copied from: http://www.scons.org/wiki/AutoconfRecipes
@@ -80,7 +80,7 @@ def checkEndian():
# This is used in creating the local config directories
VERSION, VERSION_DISPLAY, VERSION_RELEASE_CYCLE = get_version()
-REVISION = get_revision()
+HASH = get_hash()
ENDIAN = checkEndian()
@@ -693,7 +693,7 @@ def buildslave(target=None, source=None, env=None):
branch = env['BUILDBOT_BRANCH']
outdir = os.path.abspath(env['BF_INSTALLDIR'])
- package_name = 'blender-' + VERSION+'-'+REVISION + '-' + platform
+ package_name = 'blender-' + VERSION+'-'+HASH + '-' + platform
if branch != '':
package_name = branch + '-' + package_name
package_dir = os.path.normpath(outdir + os.sep + '..' + os.sep + package_name)