Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: sdk/bin/dartanalyzer_developer

Issue 22577003: Fix a few issues in the dartanalyzer shell scripts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/bin/dartanalyzer ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/bin/dartanalyzer_developer
===================================================================
--- sdk/bin/dartanalyzer_developer (revision 25868)
+++ sdk/bin/dartanalyzer_developer (working copy)
@@ -16,6 +16,18 @@
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.
PROG_NAME="$(follow_links "$BASH_SOURCE")"
@@ -29,12 +41,12 @@
DART_CONFIGURATION="ReleaseIA32"
fi
-if [[ `uname` == 'Darwin' ]];
+if [ `uname` == 'Darwin' ];
then
JAR_DIR="$CUR_DIR"/../../xcodebuild/$DART_CONFIGURATION/dartanalyzer
else
JAR_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION/dartanalyzer
-fi
+fi
JAR_FILE="$JAR_DIR/dartanalyzer.jar"
@@ -47,7 +59,7 @@
# On other architectures
# -batch invocations will do better with a server 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 "
fi
fi
« no previous file with comments | « sdk/bin/dartanalyzer ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698