mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 15:21:54 +00:00
Fixed sdk/bin/dart2analyzer to use package-root
R=ahe@google.com, ricow@google.com, scheglov@google.com Review URL: https://codereview.chromium.org//16667023 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23905 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
11e14c1b9f
commit
659b81f7bb
|
@ -1,33 +0,0 @@
|
|||
#!/bin/bash --posix
|
||||
# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
||||
# for details. All rights reserved. Use of this source code is governed by a
|
||||
# BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
set -e
|
||||
|
||||
BIN_DIR="$(cd "${BASH_SOURCE%/*}" ; pwd -P)"
|
||||
SDK_DIR="$(cd "${BIN_DIR}/.." ; pwd -P)"
|
||||
DART="$BIN_DIR/dart"
|
||||
PKG_ANALYZER="$BIN_DIR/../packages/analyzer_experimental/bin/analyzer.dart"
|
||||
|
||||
FOUND_BATCH=0
|
||||
FOUND_SDK=0
|
||||
for ARG in "$@"
|
||||
do
|
||||
case $ARG in
|
||||
-batch|--batch)
|
||||
FOUND_BATCH=1
|
||||
;;
|
||||
--dart-sdk)
|
||||
FOUND_SDK=1
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ $FOUND_SDK = 0 ] ; then
|
||||
exec "$DART" "${PKG_ANALYZER}" --dart-sdk "${SDK_DIR}" "$@"
|
||||
else
|
||||
exec "$DART" "${PKG_ANALYZER}" "$@"
|
||||
fi
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
||||
# for details. All rights reserved. Use of this source code is governed by a
|
||||
# BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
. ${BASH_SOURCE%_developer}
|
|
@ -185,7 +185,7 @@ abstract class TestSuite {
|
|||
case 'dartanalyzer':
|
||||
return 'sdk/bin/dartanalyzer_developer$suffix';
|
||||
case 'dart2analyzer':
|
||||
return 'sdk/bin/dart2analyzer_developer$suffix';
|
||||
return 'editor/tools/analyzer_experimental';
|
||||
default:
|
||||
throw "Unknown executable for: ${configuration['compiler']}";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue