diff options
author | Michel Selten <michel@mselten.demon.nl> | 2004-01-05 22:39:20 +0300 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2004-01-05 22:39:20 +0300 |
commit | f78c0478f5ca4016f1ad8b7a472b63513f36fb68 (patch) | |
tree | 3c5d1ed321aa34fd0d5e9b23d3822d20acb1c695 /SConstruct | |
parent | a66108134c72bf05a02f8a76e6305efeb6f5eb62 (diff) |
Fix building a bundle for MacOS. (SCons related).
This is a dirty solution. Maybe when we get to understand SCons better, we can
come up with a better one. For now, it works - and that's important!
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/SConstruct b/SConstruct index 3742f9482f6..b8c03748045 100644 --- a/SConstruct +++ b/SConstruct @@ -324,18 +324,15 @@ if sys.platform == 'darwin': bundle = Environment () blender_app = 'blender' bundle.Depends ('#/blender.app/Contents/MacOS/' + blender_app, blender_app) - bundle.Command ('dummy1', '#/blender.app', 'rm -rf $SOURCE') - bundle.Command ('dummy2', '#/source/darwin/blender.app', 'cp -R $SOURCE .') bundle.Command ('#/blender.app/Contents/Info.plist', '#/source/darwin/blender.app/Contents/Info.plist', + "rm -rf blender.app && " + \ + "cp -R source/darwin/blender.app . && " + "cat $SOURCE | sed s/VERSION/`cat release/VERSION`/ | \ sed s/DATE/`date +'%Y-%b-%d'`/ \ > $TARGET") - bundle.Command ('dummy3', blender_app, - 'cp $SOURCE blender.app/Contents/MacOS') - bundle.Command ('dummy4', '#/blender.app/Contents/MacOS/' + blender_app, - 'chmod +x $SOURCE') - bundle.Command ('dummy5', 'blender.app', - 'find $SOURCE -name CVS -prune -exec rm -rf {} \;') - bundle.Command ('dummy6', 'blender.app', + bundle.Command ('blender.app/Contents/MacOS/' + blender_app, blender_app, + 'cp $SOURCE $TARGET && ' + \ + 'chmod +x $TARGET && ' + \ + 'find $SOURCE -name CVS -prune -exec rm -rf {} \; && ' + 'find $SOURCE -name .DS_Store -exec rm -rf {} \;') |