| OLD | NEW |
| 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" "$@" |
| OLD | NEW |