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

Side by Side Diff: pkg/front_end/tool/fasta

Issue 2896033002: Support being called as absolute path. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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}" "$@"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698