OSX: make sure the set_simulation_threads script is always renewed
authorJens Verwiebe <info@jensverwiebe.de>
Sat, 15 Oct 2011 14:13:49 +0000 (14:13 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Sat, 15 Oct 2011 14:13:49 +0000 (14:13 +0000)
build_files/scons/tools/Blender.py

index f54ab102415a483651da19222f5797035b07c3cc..147316c204a3ae5ffb3c9f16a9025458d4967530 100644 (file)
@@ -592,7 +592,9 @@ def AppIt(target=None, source=None, env=None):
         commands.getoutput(cmd)
         cmd = 'install_name_tool -change %s/lib/libgcc_s.1.dylib  @executable_path/lib/libgcc_s.1.dylib %s/%s.app/Contents/MacOS/%s'%(instname, installdir, binary, binary)
         commands.getoutput(cmd)
         commands.getoutput(cmd)
         cmd = 'install_name_tool -change %s/lib/libgcc_s.1.dylib  @executable_path/lib/libgcc_s.1.dylib %s/%s.app/Contents/MacOS/%s'%(instname, installdir, binary, binary)
         commands.getoutput(cmd)
-        cmd = 'cp -R %s/source/darwin/set_simulation_threads.app %s/'%(bldroot, installdir) # the omp_num_threads applescript
+        cmd = 'rm -rf  %s/set_simulation_threads.app'%(installdir) # first clear omp_num_threads applescript
+        commands.getoutput(cmd)
+        cmd = 'cp -R %s/source/darwin/set_simulation_threads.app %s/'%(bldroot, installdir) # copy the omp_num_threads applescript
         commands.getoutput(cmd)
 
 # extract copy system python, be sure to update other build systems
         commands.getoutput(cmd)
 
 # extract copy system python, be sure to update other build systems