summaryrefslogtreecommitdiff
path: root/makefile/preflighting/macosx/appvalidator.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makefile/preflighting/macosx/appvalidator.sh')
-rw-r--r--makefile/preflighting/macosx/appvalidator.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/makefile/preflighting/macosx/appvalidator.sh b/makefile/preflighting/macosx/appvalidator.sh
new file mode 100644
index 0000000..b1a7021
--- /dev/null
+++ b/makefile/preflighting/macosx/appvalidator.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+exe=""
+
+pwd=`pwd`
+wdir=`dirname $0`
+
+cd $wdir
+fullwdir=`pwd`
+if [ -e motodevstudio.app ]
+then
+ exe="motodevstudio"
+
+ if [ ! -e motodevstudio ]
+ then
+ ln -s "motodevstudio.app/Contents/MacOS/motodevstudio" .
+ fi
+else
+ exe="eclipse"
+fi
+
+cd $pwd
+
+$fullwdir/$exe -nosplash --launcher.suppressErrors -nl en -application com.motorolamobility.preflighting.MOTODEVApplicationValidator $@ -vmargs -Xms128m -Xmx512m -Declipse.exitdata="" -Djava.awt.headless=true | tee
+err=$PIPESTATUS
+
+exit $err