| Index: sdk/bin/dartdoc
|
| ===================================================================
|
| --- sdk/bin/dartdoc (revision 0)
|
| +++ sdk/bin/dartdoc (revision 0)
|
| @@ -0,0 +1,31 @@
|
| +#!/bin/bash
|
| +# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +# 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.
|
| +
|
| +# Setting CUR_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.
|
| +CUR_DIR="$(cd "${0%/*}" ; pwd -P)"
|
| +if [ -z "$DART_VERSION" ];
|
| +then
|
| + DART_VERSION="ReleaseIA32"
|
| +fi
|
| +
|
| +if [[ `uname` -eq 'Darwin' ]];
|
| +then
|
| + BIN_DIR="$CUR_DIR"/../../xcodebuild/$DART_VERSION
|
| +else
|
| + BIN_DIR="$CUR_DIR"/../../out/$DART_VERSION
|
| +fi
|
| +
|
| +unset COLORS
|
| +if test -t 1; then
|
| + # Stdout is a terminal.
|
| + if test 8 -le `tput colors`; then
|
| + # Stdout has at least 8 colors, so enable colors.
|
| + COLORS="--enable-diagnostic-colors"
|
| + fi
|
| +fi
|
| +
|
| +exec "$BIN_DIR"/dart --no_use_inlining --heap_growth_rate=32 "$CUR_DIR/../lib/_internal/dartdoc/bin/dartdoc.dart" $COLORS "$@"
|
|
|
| Property changes on: sdk/bin/dartdoc
|
| ___________________________________________________________________
|
| Added: svn:executable
|
| + *
|
|
|
|
|