OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env bash | |
kustermann
2017/01/31 15:39:00
You can get rid of this 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 | |
4 # BSD-style license that can be found in the LICENSE file. | |
5 | |
6 # Unlike $0, $BASH_SOURCE points to the absolute path of this file. | |
7 PROG_NAME="$BASH_SOURCE" | |
8 WRAPPERS_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" | |
9 DART_ROOT="$(cd "${WRAPPERS_DIR}/../.." ; pwd -P)" | |
10 DARTK="$DART_ROOT/runtime/tools/kernel-service.dart" | |
11 | |
12 if [[ `uname` == 'Darwin' ]]; | |
13 then | |
14 DART="$DART_ROOT/tools/sdks/mac/dart-sdk/bin/dart" | |
15 else | |
16 DART="$DART_ROOT/tools/sdks/linux/dart-sdk/bin/dart" | |
17 fi | |
18 | |
19 exec "$DART" "$DARTK" "--batch" | |
OLD | NEW |