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:
Diffstat (limited to 'build_files/scons')
-rw-r--r--build_files/scons/tools/btools.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py
index 69bb42264e5..2d8c9276ba1 100644
--- a/build_files/scons/tools/btools.py
+++ b/build_files/scons/tools/btools.py
@@ -545,8 +545,18 @@ def buildslave(target=None, source=None, env=None):
else:
extension = '.tar.bz2'
+ platform = env['OURPLATFORM'].split('-')[0]
+ if platform == 'linux2':
+ import platform
+
+ bitness = platform.architecture()[0]
+ if bitness == '64bit':
+ platform = 'linux-glibc27-x86_64'
+ elif bitness == '32bit':
+ platform = 'linux-glibc27-i686'
+
outdir = os.path.abspath(env['BF_INSTALLDIR'])
- package_name = 'blender-' + VERSION+'-'+REVISION + '-' + env['OURPLATFORM'].split('-')[0]
+ package_name = 'blender-' + VERSION+'-'+REVISION + '-' + platform
package_dir = os.path.normpath(outdir + os.sep + '..' + os.sep + package_name)
package_archive = os.path.normpath(outdir + os.sep + '..' + os.sep + package_name + extension)