| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, 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 # Run pub.dart on the Dart VM. This script assumes the Dart SDK's directory | 6 # Run pub.dart on the Dart VM. This script assumes the Dart SDK's directory |
| 7 # structure. | 7 # structure. |
| 8 | 8 |
| 9 function follow_links() { | 9 function follow_links() { |
| 10 file="$1" | 10 file="$1" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 if [[ `uname` == 'Darwin' ]]; | 52 if [[ `uname` == 'Darwin' ]]; |
| 53 then | 53 then |
| 54 BUILD_DIR="$SDK_DIR/../xcodebuild/$DART_CONFIGURATION" | 54 BUILD_DIR="$SDK_DIR/../xcodebuild/$DART_CONFIGURATION" |
| 55 else | 55 else |
| 56 BUILD_DIR="$SDK_DIR/../out/$DART_CONFIGURATION" | 56 BUILD_DIR="$SDK_DIR/../out/$DART_CONFIGURATION" |
| 57 fi | 57 fi |
| 58 | 58 |
| 59 # Use the Dart binary in the built SDK so pub can find the version file next | 59 # Use the Dart binary in the built SDK so pub can find the version file next |
| 60 # to it. | 60 # to it. |
| 61 DART="$BUILD_DIR/dart-sdk/bin/dart" | 61 DART="$BUILD_DIR/dart-sdk/bin/dart" |
| 62 PACKAGES_DIR="$BUILD_DIR/packages/" | 62 PACKAGES_DIR="$BUILD_DIR/pub_packages/" |
| 63 | 63 |
| 64 PUB="$SDK_DIR/lib/_internal/pub/bin/pub.dart" | 64 PUB="$SDK_DIR/lib/_internal/pub/bin/pub.dart" |
| 65 | 65 |
| 66 exec "$DART" "${VM_OPTIONS[@]}" "--package-root=$PACKAGES_DIR" "$PUB" "$@" | 66 exec "$DART" "${VM_OPTIONS[@]}" "--package-root=$PACKAGES_DIR" "$PUB" "$@" |
| 67 fi | 67 fi |
| OLD | NEW |