diff deploy/osx/deploy.sh @ 66:f9803dceab2a r0.1_osx_testbuild

OS/X deployment updates
author Chris Cannam
date Thu, 18 Jul 2013 17:48:52 +0100
parents 092a69229347
children 26784984642a
line wrap: on
line diff
--- a/deploy/osx/deploy.sh	Thu Jul 18 15:48:42 2013 +0100
+++ b/deploy/osx/deploy.sh	Thu Jul 18 17:48:52 2013 +0100
@@ -23,6 +23,23 @@
     *) echo "Error: Version $version is neither two- nor three-part number" ;;
 esac
 
+if file "$source/Contents/MacOS/$app" | grep -q script; then
+    echo
+    echo "Executable is already a script, leaving it alone."
+else
+    echo
+    echo "Moving aside executable, adding script."
+
+    mv "$source/Contents/MacOS/$app" "$source/Contents/Resources/" || exit 1
+    cp "deploy/osx/$app.sh" "$source/Contents/MacOS/$app" || exit 1
+    chmod +x "$source/Contents/MacOS/$app"
+fi
+
+echo
+echo "Copying in plugin."
+
+cp ../yintony/yintony.{dylib,cat,n3} "$source/Contents/Resources/"
+
 echo
 echo "Fixing up paths."