Index: sdk/bin/dartdoc |
=================================================================== |
--- sdk/bin/dartdoc (revision 21335) |
+++ sdk/bin/dartdoc (working copy) |
@@ -18,9 +18,13 @@ |
fi |
unset SNAPSHOT |
-if test -f "$BIN_DIR/../lib/_internal/dartdoc/bin/dartdoc.dart.snapshot"; then |
+ |
+SNAPSHOT="$BIN_DIR/snapshots/utils_wrapper.dart.snapshot" |
+ |
+if test -f $SNAPSHOT; then |
# TODO(ahe): Remove the following line when we are relatively sure it works. |
- echo Using snapshot "$BIN_DIR/../lib/_internal/dartdoc/bin/dartdoc.dart.snapshot" 1>&2 |
- SNAPSHOT="--use-script-snapshot=$BIN_DIR/../lib/_internal/dartdoc/bin/dartdoc.dart.snapshot" |
+ echo Using snapshot $SNAPSHOT 1>&2 |
+ exec "$BIN_DIR"/dart --heap_growth_rate=32 $SNAPSHOT $COLORS "--package-root=$BIN_DIR/../packages/" "$@" |
ahe
2013/04/15 06:33:18
Extra space after colors.
Shouldn't it say "dartd
ricow1
2013/04/15 07:06:13
Yes, debug leftover, sorry
|
+else |
+ exec "$BIN_DIR"/dart --heap_growth_rate=32 "--package-root=$BIN_DIR/../packages/" "$BIN_DIR/../lib/_internal/dartdoc/bin/dartdoc.dart" $COLORS "$@" |
ahe
2013/04/15 06:33:18
Long line.
ricow1
2013/04/15 07:06:13
Done.
ricow1
2013/04/15 07:06:13
Done.
|
fi |
-exec "$BIN_DIR"/dart --heap_growth_rate=32 "--package-root=$BIN_DIR/../packages/" $SNAPSHOT "$BIN_DIR/../lib/_internal/dartdoc/bin/dartdoc.dart" "--package-root=$BIN_DIR/../packages/" $COLORS "$@" |