Chromium Code Reviews| Index: utils/compiler/build_helper.dart |
| =================================================================== |
| --- utils/compiler/build_helper.dart (revision 12972) |
| +++ utils/compiler/build_helper.dart (working copy) |
| @@ -103,7 +103,11 @@ |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| -BIN_DIR=`dirname \$0` |
| +# 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 "\$(dirname "\$0")"; pwd -P` |
|
ahe
2012/09/28 03:47:30
I've been reading up on the Bash manual (http://ww
dgrove
2012/09/28 15:48:17
This seems like a good (but even uglier) alternati
|
| + |
| unset COLORS |
| if test -t 1; then |
| # Stdout is a terminal. |