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

Side by Side Diff: tools/dartk_wrappers/dartk

Issue 2842643002: Move dartk to the tool folder (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2016, 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 # Unlike $0, $BASH_SOURCE points to the absolute path of this file. 6 # Unlike $0, $BASH_SOURCE points to the absolute path of this file.
7 PROG_NAME="$BASH_SOURCE" 7 PROG_NAME="$BASH_SOURCE"
8 WRAPPERS_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" 8 WRAPPERS_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
9 DART_ROOT="$(cd "${WRAPPERS_DIR}/../.." ; pwd -P)" 9 DART_ROOT="$(cd "${WRAPPERS_DIR}/../.." ; pwd -P)"
10 DARTK="$DART_ROOT/pkg/kernel/bin/dartk.dart" 10 DARTK="$DART_ROOT/pkg/kernel/tool/dartk.dart"
11 11
12 if [[ `uname` == 'Darwin' ]]; 12 if [[ `uname` == 'Darwin' ]];
13 then 13 then
14 DART="$DART_ROOT/tools/sdks/mac/dart-sdk/bin/dart" 14 DART="$DART_ROOT/tools/sdks/mac/dart-sdk/bin/dart"
15 else 15 else
16 DART="$DART_ROOT/tools/sdks/linux/dart-sdk/bin/dart" 16 DART="$DART_ROOT/tools/sdks/linux/dart-sdk/bin/dart"
17 fi 17 fi
18 18
19 exec "$DART" "$DARTK" "$@" 19 exec "$DART" "$DARTK" "$@"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698