OLD | NEW |
1 # Copyright (c) 2015, the Dartino 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 dartino-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 Dartino 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" |
12 DART_VM="$SCRIPT_DIR/../../internal/dart" | 12 DART_VM="$SCRIPT_DIR/../../internal/dart" |
13 FLETCH_VM="$SCRIPT_DIR/../../bin/fletch-vm" | 13 DARTINO_VM="$SCRIPT_DIR/../../bin/dartino-vm" |
14 | 14 |
15 # If we are not in a Fletch SDK, assume a Fletch Github checkout. | 15 # If we are not in a Dartino SDK, assume a Dartino Github checkout. |
16 if [ ! -r "$DART_FILE" ]; then | 16 if [ ! -r "$DART_FILE" ]; then |
17 DART_FILE="$SCRIPT_DIR/../../pkg/flash_sd_card/bin/flash_sd_card.dart" | 17 DART_FILE="$SCRIPT_DIR/../../pkg/flash_sd_card/bin/flash_sd_card.dart" |
18 fi | 18 fi |
19 | 19 |
20 # If we are not in a Fletch SDK, assume a Fletch Github checkout. | 20 # If we are not in a Dartino SDK, assume a Dartino Github checkout. |
21 if [ ! -r "$DART_VM" ]; then | 21 if [ ! -r "$DART_VM" ]; then |
22 # Guess Linux, running from platforms/raspberry-pi2. | 22 # Guess Linux, running from platforms/raspberry-pi2. |
23 DART_VM="$SCRIPT_DIR/../../third_party/bin/linux/dart" | 23 DART_VM="$SCRIPT_DIR/../../third_party/bin/linux/dart" |
24 if [ ! -r $DART_VM ]; then | 24 if [ ! -r $DART_VM ]; then |
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 Dartino SDK, assume a Dartino Github checkout. |
31 if [ ! -r "$FLETCH_VM" ]; then | 31 if [ ! -r "$DARTINO_VM" ]; then |
32 # Don't point to any Fletch VM in this case. | 32 # Don't point to any Dartino VM in this case. |
33 FLETCH_VM= | 33 DARTINO_VM= |
34 fi | 34 fi |
OLD | NEW |