OLD | NEW |
1 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE.md file. | 3 # BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 # Common script setup. | 5 # Common script setup. |
6 | 6 |
7 # Handle the case where fletch-sdk/bin has been symlinked to. | 7 # Handle the case where fletch-sdk/bin has been symlinked to. |
8 SCRIPT_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" | 8 SCRIPT_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" |
9 | 9 |
10 # Location of the Dart script and the Dart VM in a Fletch SDK. | 10 # Location of the Dart script and the Dart VM in a Fletch SDK. |
11 DART_FILE="$SCRIPT_DIR/../../internal/pkg/flash_sd_card/bin/flash_sd_card.dart" | 11 DART_FILE="$SCRIPT_DIR/../../internal/pkg/flash_sd_card/bin/flash_sd_card.dart" |
(...skipping 13 matching lines...) Expand all Loading... |
25 # Guess Mac OS, running from platforms/raspberry-pi2. | 25 # Guess Mac OS, running from platforms/raspberry-pi2. |
26 DART_VM="$SCRIPT_DIR/../../third_party/bin/mac/dart" | 26 DART_VM="$SCRIPT_DIR/../../third_party/bin/mac/dart" |
27 fi | 27 fi |
28 fi | 28 fi |
29 | 29 |
30 # If we are not in a Fletch SDK, assume a Fletch Github checkout. | 30 # If we are not in a Fletch SDK, assume a Fletch Github checkout. |
31 if [ ! -r "$FLETCH_VM" ]; then | 31 if [ ! -r "$FLETCH_VM" ]; then |
32 # Don't point to any Fletch VM in this case. | 32 # Don't point to any Fletch VM in this case. |
33 FLETCH_VM= | 33 FLETCH_VM= |
34 fi | 34 fi |
OLD | NEW |