mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:47:03 +00:00
Fix a few issues in the dartanalyzer shell scripts.
R=scheglov@google.com Review URL: https://codereview.chromium.org//22577003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25923 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
32c1b1e412
commit
eedbf0ccfc
|
@ -28,7 +28,7 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
DART_SDK=""
|
DART_SDK=""
|
||||||
if [ $FOUND_SDK = 0 ] ; then
|
if [ $FOUND_SDK -eq 0 ] ; then
|
||||||
if [ -f "$DART_ANALYZER_HOME/lib/core/core.dart" ] ; then
|
if [ -f "$DART_ANALYZER_HOME/lib/core/core.dart" ] ; then
|
||||||
DART_SDK=(--dart-sdk "$DART_ANALYZER_HOME")
|
DART_SDK=(--dart-sdk "$DART_ANALYZER_HOME")
|
||||||
else
|
else
|
||||||
|
@ -70,7 +70,7 @@ else
|
||||||
# On other architectures
|
# On other architectures
|
||||||
# -batch invocations will do better with a server vm
|
# -batch invocations will do better with a server vm
|
||||||
# invocations for analyzing a single file do better with a client vm
|
# invocations for analyzing a single file do better with a client vm
|
||||||
if [ $FOUND_BATCH = 0 ] ; then
|
if [ $FOUND_BATCH -eq 0 ] ; then
|
||||||
EXTRA_JVMARGS+=" -client "
|
EXTRA_JVMARGS+=" -client "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -16,6 +16,18 @@ function follow_links() {
|
||||||
echo "$1"
|
echo "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FOUND_BATCH=0
|
||||||
|
for ARG in "$@"
|
||||||
|
do
|
||||||
|
case $ARG in
|
||||||
|
-batch|--batch)
|
||||||
|
FOUND_BATCH=1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
# Unlike $0, $BASH_SOURCE points to the absolute path of this file.
|
# Unlike $0, $BASH_SOURCE points to the absolute path of this file.
|
||||||
PROG_NAME="$(follow_links "$BASH_SOURCE")"
|
PROG_NAME="$(follow_links "$BASH_SOURCE")"
|
||||||
|
|
||||||
|
@ -29,12 +41,12 @@ then
|
||||||
DART_CONFIGURATION="ReleaseIA32"
|
DART_CONFIGURATION="ReleaseIA32"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ `uname` == 'Darwin' ]];
|
if [ `uname` == 'Darwin' ];
|
||||||
then
|
then
|
||||||
JAR_DIR="$CUR_DIR"/../../xcodebuild/$DART_CONFIGURATION/dartanalyzer
|
JAR_DIR="$CUR_DIR"/../../xcodebuild/$DART_CONFIGURATION/dartanalyzer
|
||||||
else
|
else
|
||||||
JAR_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION/dartanalyzer
|
JAR_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION/dartanalyzer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
JAR_FILE="$JAR_DIR/dartanalyzer.jar"
|
JAR_FILE="$JAR_DIR/dartanalyzer.jar"
|
||||||
|
|
||||||
|
@ -47,7 +59,7 @@ else
|
||||||
# On other architectures
|
# On other architectures
|
||||||
# -batch invocations will do better with a server vm
|
# -batch invocations will do better with a server vm
|
||||||
# invocations for analyzing a single file do better with a client vm
|
# invocations for analyzing a single file do better with a client vm
|
||||||
if [ $FOUND_BATCH = 0 ] ; then
|
if [ $FOUND_BATCH -eq 0 ] ; then
|
||||||
EXTRA_JVMARGS+=" -client "
|
EXTRA_JVMARGS+=" -client "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue