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 is only used when running pub from | 6 # Run pub.dart on the Dart VM. This script is only used when running pub from |
7 # within the Dart source repo. The shipped SDK instead uses "pub_sdk", which is | 7 # within the Dart source repo. The shipped SDK instead uses "pub_sdk", which is |
8 # renamed to "pub" when the SDK is built. | 8 # renamed to "pub" when the SDK is built. |
9 | 9 |
10 function follow_links() { | 10 function follow_links() { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 if [[ `uname` == 'Darwin' ]]; | 47 if [[ `uname` == 'Darwin' ]]; |
48 then | 48 then |
49 BUILD_DIR="$SDK_DIR/../xcodebuild/$DART_CONFIGURATION" | 49 BUILD_DIR="$SDK_DIR/../xcodebuild/$DART_CONFIGURATION" |
50 else | 50 else |
51 BUILD_DIR="$SDK_DIR/../out/$DART_CONFIGURATION" | 51 BUILD_DIR="$SDK_DIR/../out/$DART_CONFIGURATION" |
52 fi | 52 fi |
53 | 53 |
54 # Use the Dart binary in the built SDK so pub can find the version file next | 54 # Use the Dart binary in the built SDK so pub can find the version file next |
55 # to it. | 55 # to it. |
56 DART="$BUILD_DIR/dart-sdk/bin/dart" | 56 DART="$BUILD_DIR/dart-sdk/bin/dart" |
57 PACKAGES_DIR="$BUILD_DIR/pub_packages/" | 57 PACKAGES_DIR="$BUILD_DIR/packages/" |
58 | 58 |
59 # Run the async/await compiled pub. | 59 # Run the async/await compiled pub. |
60 PUB="$SDK_DIR/lib/_internal/pub_generated/bin/pub.dart" | 60 PUB="$SDK_DIR/lib/_internal/pub_generated/bin/pub.dart" |
61 exec "$DART" "${VM_OPTIONS[@]}" "--package-root=$PACKAGES_DIR" "$PUB" "$@" | 61 exec "$DART" "${VM_OPTIONS[@]}" "--package-root=$PACKAGES_DIR" "$PUB" "$@" |
OLD | NEW |