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:
authorNathan Letwory <nathan@letworyinteractive.com>2006-02-05 15:08:32 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2006-02-05 15:08:32 +0300
commitc5a0e79fb02d42cdd657ddc6bb0805335df212bd (patch)
tree3320a6a2d97f761dcb663517776d189931bce344 /tools
parenta91c07715238c3da8bdec8c02fa7322e11cec13e (diff)
- removed redundant code
Diffstat (limited to 'tools')
-rw-r--r--tools/Blender.py23
1 files changed, 7 insertions, 16 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index 54780738b9b..bdaf3936ee4 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -260,9 +260,9 @@ def set_quiet_output(env):
env['BUILDERS']['Program'] = program
def my_appit_print(target, source, env):
- a = '%s' % (target[0])
- d, f = os.path.split(a)
- return "making bundle for " + f
+ a = '%s' % (target[0])
+ d, f = os.path.split(a)
+ return "making bundle for " + f
def AppIt(target=None, source=None, env=None):
import shutil
@@ -293,9 +293,9 @@ def AppIt(target=None, source=None, env=None):
shutil.copy(bldroot + '/bin/.blender/.bfont.ttf', cmd)
shutil.copy(bldroot + '/bin/.blender/.Blanguages', cmd)
cmd = 'cp -R %s/bin/.blender/locale %s/%s.app/Contents/Resources/'%(bldroot,builddir,binary)
- commands.getoutput(cmd)
+ commands.getoutput(cmd)
cmd = 'cp -R %s/bin/.blender/locale %s/%s.app/Contents/MacOS/.blender/'%(bldroot,builddir,binary)
- commands.getoutput(cmd)
+ commands.getoutput(cmd)
cmd = 'cp -R %s/release/scripts %s/%s.app/Contents/MacOS/.blender/'%(bldroot,builddir,binary)
commands.getoutput(cmd)
cmd = 'chmod +x %s/%s.app/Contents/MacOS/%s'%(builddir,binary, binary)
@@ -358,17 +358,8 @@ class BlenderEnvironment(SConsEnvironment):
SConsEnvironment.Default(self, prog)
program_list.append(prog)
if lenv['OURPLATFORM']=='darwin':
- lenv['BINARYKIND'] = binarykind
- lenv.AddPostAction(prog,Action(AppIt,strfunction=my_appit_print))
-
-## TODO: have register for libs/programs, so that we test only that
-# which have expressed their need to be tested in their own sconscript
- def BlenderUnitTest(env, source, **kwargs):
- test = env.Program(source, **kwargs)
- env.AddPostAction(test, test[0].abspath)
- env.Alias('check', test)
- env.AlwaysBuild(test)
- return test
+ lenv['BINARYKIND'] = binarykind
+ lenv.AddPostAction(prog,Action(AppIt,strfunction=my_appit_print))
def Glob(lenv, pattern):
path = string.replace(GetBuildPath(lenv,'SConscript'),'SConscript', '')