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

Side by Side Diff: sdk/bin/analyzer

Issue 12618010: Rename the name of the new analyzer jar file from new_analyzer.jar to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « editor/analyzer.gyp ('k') | sdk/bin/analyzer.bat » ('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
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 # This file is used to execute the analyzer by running the jar file.
7 # It is a simple wrapper enabling us to have simpler command lines in
8 # the testing infrastructure.
9 set -e
10
11 function follow_links() {
12 while [ -h "$1" ]; do
13 # On Mac OS, readlink -f doesn't work.
14 1="$(readlink "$1")"
15 done
16 echo "$1"
17 }
18
19 # Unlike $0, $BASH_SOURCE points to the absolute path of this file.
20 PROG_NAME="$(follow_links "$BASH_SOURCE")"
21
22 # Handle the case where the binary dir has been symlinked to.
23 CUR_DIR="$(follow_links "$(cd "${PROG_NAME%/*}" ; pwd -P)")"
24
25 SDK_DIR="$(cd "${CUR_DIR}/.." ; pwd -P)"
26
27 if [ -z "$DART_CONFIGURATION" ];
28 then
29 DART_CONFIGURATION="ReleaseIA32"
30 fi
31
32 if [[ `uname` == 'Darwin' ]];
33 then
34 JAR_DIR="$CUR_DIR"/../../xcodebuild/$DART_CONFIGURATION/new_analyzer
35 else
36 JAR_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION/new_analyzer
37 fi
38
39 JAR_FILE="$JAR_DIR/new_analyzer.jar"
40
41 exec java -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@"
OLDNEW
« no previous file with comments | « editor/analyzer.gyp ('k') | sdk/bin/analyzer.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698