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:
authorNathan Letwory <nathan@letworyinteractive.com>2007-03-29 08:28:29 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2007-03-29 08:28:29 +0400
commit42fa2ba00b4c5dc2427be616d64d30eaaab433f5 (patch)
treee5562fb50f26f1d15dd99a664c22e349a1f37e6c /SConstruct
parent1e71afc48ab12967e1fc67ff7b8271babbebf3c3 (diff)
=== SCons ===
Patch provided by Emmanuel Turquin: copy a proper bundle on OSX. I take it he has tested this on OSX :) Other OSX-ers, please do verify :) (/me hugs his Windows)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct15
1 files changed, 14 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index ce41589a03a..97930bd5a32 100644
--- a/SConstruct
+++ b/SConstruct
@@ -506,7 +506,20 @@ if env['WITH_BF_PLAYER']:
#------------ INSTALL
-blenderinstall = env.Install(dir=env['BF_INSTALLDIR'], source=B.program_list)
+#-- binaries
+blenderinstall = []
+if env['OURPLATFORM']=='darwin':
+ for prg in B.program_list:
+ bundle = '%s.app' % prg[0]
+ bundledir = os.path.dirname(bundle)
+ for dp, dn, df in os.walk(bundle):
+ if 'CVS' in dn:
+ dn.remove('CVS')
+ dir=env['BF_INSTALLDIR']+dp[len(bundledir):]
+ source=[dp+os.sep+f for f in df]
+ blenderinstall.append(env.Install(dir=dir,source=source))
+else:
+ blenderinstall = env.Install(dir=env['BF_INSTALLDIR'], source=B.program_list)
#-- .blender
dotblendlist = []