| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2017, 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 set -e | 6 set -e |
| 7 | 7 |
| 8 REPO_DIR="$(git rev-parse --show-toplevel)" | 8 REPO_DIR="$(cd ${BASH_SOURCE%/*} && git rev-parse --show-toplevel)" |
| 9 | 9 |
| 10 # TODO(ahe): We currently rely on the Dart VM wrapper script to define | 10 # TODO(ahe): We currently rely on the Dart VM wrapper script to define |
| 11 # DART_CONFIGURATION for locating platform.dill. | 11 # DART_CONFIGURATION for locating platform.dill. |
| 12 DART_VM="${REPO_DIR}/sdk/bin/dart" | 12 DART_VM="${REPO_DIR}/sdk/bin/dart" |
| 13 | 13 |
| 14 TOOL_DIR="${REPO_DIR}/pkg/front_end/tool/_fasta" | 14 TOOL_DIR="${REPO_DIR}/pkg/front_end/tool/_fasta" |
| 15 | 15 |
| 16 KERNEL_BIN="${REPO_DIR}/pkg/kernel/bin" | 16 KERNEL_BIN="${REPO_DIR}/pkg/kernel/bin" |
| 17 | 17 |
| 18 function stop { | 18 function stop { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 ;; | 64 ;; |
| 65 generate-messages) SCRIPT="${TOOL_DIR}/generate_messages.dart";; | 65 generate-messages) SCRIPT="${TOOL_DIR}/generate_messages.dart";; |
| 66 *) | 66 *) |
| 67 stop "'$1' isn't a valid subcommand." | 67 stop "'$1' isn't a valid subcommand." |
| 68 ;; | 68 ;; |
| 69 esac | 69 esac |
| 70 | 70 |
| 71 shift | 71 shift |
| 72 | 72 |
| 73 exec "${DART_VM}" -c "${SCRIPT}" "$@" | 73 exec "${DART_VM}" -c "${SCRIPT}" "$@" |
| OLD | NEW |