Try to allow OSX builds with any prefix.
authorCarl Hetherington <cth@carlh.net>
Tue, 29 Oct 2013 11:14:14 +0000 (11:14 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 29 Oct 2013 11:14:14 +0000 (11:14 +0000)
cscript
platform/osx/make_dmg.sh

diff --git a/cscript b/cscript
index 19906658125469e55aad47819afeba6b5ac8b74b..b6088e0cb671925a32b7bdfd270289dfe6552f9f 100644 (file)
--- a/cscript
+++ b/cscript
@@ -59,7 +59,7 @@ def package(target, version):
 
         return debs
     elif target.platform == 'osx':
-        target.command('bash platform/osx/make_dmg.sh')
+        target.command('bash platform/osx/make_dmg.sh %s' % target.work_dir_cscript())
         return os.path.abspath(glob.glob('build/platform/osx/DCP-o-matic*.dmg')[0])
 
 def make_pot(target):
index ad53b8801de9573c56446295c7cf90005939e6fa..5554249f29d124202317a26b9d025480cd0dd52a 100644 (file)
@@ -1,4 +1,8 @@
 #!/bin/bash
+#
+# Syntax: make_dmg.sh <builddir>
+#
+# e.g. make_dmg.sh /Users/carl/cdist
 
 set -e
 
@@ -8,7 +12,7 @@ version=`cat wscript | egrep ^VERSION | awk '{print $3}' | sed -e "s/'//g"`
 DMG_SIZE=256
 WORK=build/platform/osx
 ENV=/Users/carl/Environments/osx
-ROOT=/Users/carl/cdist
+ROOT=$1
 
 appdir="DCP-o-matic.app"
 approot=$appdir/Contents