OLD | NEW |
1 #!/bin/bash --posix | 1 #!/bin/bash --posix |
2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 set -e | 6 set -e |
7 | 7 |
8 function follow_links() { | 8 function follow_links() { |
9 file="$1" | 9 file="$1" |
10 while [ -h "$file" ]; do | 10 while [ -h "$file" ]; do |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 # On other architectures | 81 # On other architectures |
82 # -batch invocations will do better with a server vm | 82 # -batch invocations will do better with a server vm |
83 # invocations for analyzing a single file do better with a client vm | 83 # invocations for analyzing a single file do better with a client vm |
84 if [ $FOUND_BATCH -eq 0 ] ; then | 84 if [ $FOUND_BATCH -eq 0 ] ; then |
85 EXTRA_JVMARGS+=" -client " | 85 EXTRA_JVMARGS+=" -client " |
86 fi | 86 fi |
87 fi | 87 fi |
88 | 88 |
89 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -jar \ | 89 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -jar \ |
90 "$DART_ANALYZER_LIBS/dartanalyzer.jar" "${DART_SDK[@]}" $@ | 90 "$DART_ANALYZER_LIBS/dartanalyzer.jar" "${DART_SDK[@]}" $@ |
OLD | NEW |