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

Side by Side Diff: sdk/bin/pub

Issue 397773002: Create a separate packages directory for running pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698