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

Side by Side Diff: editor/tools/analyzer_experimental

Issue 16667023: Fixed sdk/bin/dart2analyzer to use package-root (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/bin/dart2analyzer » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash --posix
ahe 2013/06/12 13:21:19 What is the --posix option for?
kustermann 2013/06/12 13:37:07 Left over from old dart2analyzer script. Should no
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
4 # BSD-style license that can be found in the LICENSE file.
5
6 set -e
7
8 CUR_DIR="$(cd "${BASH_SOURCE%/*}" ; pwd -P)"
ahe 2013/06/12 13:21:19 Is ${BASH_SOURCE%/*} a POSIX feature?
kustermann 2013/06/12 13:37:07 I don't know. But sdk/bin/dart2js uses BASH_SOURCE
9
10 if [ -z "$DART_CONFIGURATION" ];
11 then
ahe 2013/06/12 13:21:19 Keep then on same line as if.
kustermann 2013/06/12 13:37:07 Done.
12 DART_CONFIGURATION="ReleaseIA32"
13 fi
14
15 DART_ROOT="$(cd "${CUR_DIR}/../.." ; pwd -P)"
16 SDK_DIR="$(cd "${DART_ROOT}/sdk" ; pwd -P)"
17 PKG_ANALYZER="$DART_ROOT/pkg/analyzer_experimental/bin/analyzer.dart"
18
19 if [[ `uname` == 'Darwin' ]];
20 then
ahe 2013/06/12 13:21:19 Ditto.
kustermann 2013/06/12 13:37:07 Done.
21 BUILD_DIR="$DART_ROOT/xcodebuild/$DART_CONFIGURATION"
22 else
23 BUILD_DIR="$DART_ROOT/out/$DART_CONFIGURATION"
24 fi
25
26 PACKAGE_ROOT="$BUILD_DIR/packages/"
27
28 FOUND_SDK=0
29 for ARG in "$@"
30 do
31 case $ARG in
32 --dart-sdk)
33 FOUND_SDK=1
34 ;;
35 *)
36 ;;
37 esac
38 done
39
40 if [ $FOUND_SDK = 0 ] ; then
41 exec "$BUILD_DIR/dart" "--package-root=$PACKAGE_ROOT" "${PKG_ANALYZER}" --dart -sdk "${SDK_DIR}" "$@"
ahe 2013/06/12 13:21:19 Long line.
kustermann 2013/06/12 13:37:07 Done.
42 else
43 exec "$BUILD_DIR/dart" "--package-root=$PACKAGE_ROOT" "${PKG_ANALYZER}" "$@"
44 fi
OLDNEW
« no previous file with comments | « no previous file | sdk/bin/dart2analyzer » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698