mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:47:03 +00:00
65db39f5cf
run from the repo. Review URL: https://codereview.chromium.org//11381003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14764 260f80e4-7a28-3924-810f-c04153c831b5
14 lines
494 B
Bash
Executable file
14 lines
494 B
Bash
Executable file
#!/bin/bash
|
|
# Run pub.dart on the Dart VM. This script assumes the Dart SDK's directory
|
|
# structure.
|
|
|
|
# Setting BIN_DIR this way is ugly, but is needed to handle the case where
|
|
# dart-sdk/bin has been symlinked to. On MacOS, readlink doesn't work
|
|
# with this case.
|
|
BIN_DIR="$(cd "${0%/*}" ; pwd -P)"
|
|
export DART_SDK="$(cd "${BIN_DIR%/*}" ; pwd -P)"
|
|
|
|
# TODO(dgrove): This doesn't work yet. It will once dartbug.com/6619 is
|
|
# fixed.
|
|
exec "$BIN_DIR"/dart "$DART_SDK"/lib/_internal/pub/pub.dart $@
|