summaryrefslogtreecommitdiff
path: root/makefile/preflighting/macosx/appvalidator.sh
blob: b1a70213435290e9589f9665f91737339575e52d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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