| Index: utils/dartdoc/dartdoc
|
| diff --git a/utils/dartdoc/dartdoc b/utils/dartdoc/dartdoc
|
| deleted file mode 100755
|
| index 1a195052874f64a8392bd1d19fe93a39ce107372..0000000000000000000000000000000000000000
|
| --- a/utils/dartdoc/dartdoc
|
| +++ /dev/null
|
| @@ -1,61 +0,0 @@
|
| -#!/bin/bash
|
| -
|
| -# To generate docs for a library, run this script with the path to an entrypoint
|
| -# .dart file, like:
|
| -#
|
| -# $ dartdoc foo.dart
|
| -#
|
| -# You can also pass in a couple of "special" entrypoints for generating
|
| -# docs for dart's built in libraries. The special entrypoints are:
|
| -#
|
| -# - "corelib": dart:core, dart:coreimpl
|
| -# - "dom": dart:core, dart:coreimpl, dart:dom
|
| -# - "html": dart:core, dart:coreimpl, dart:dom, dart:html
|
| -
|
| -# Get the .dart lib file the user wants to generate docs for.
|
| -# Add the path to it so that we can find it, but only if it's a .dart file and
|
| -# not one of the special fake entrypoints like "corelib".
|
| -entrypoint=$1
|
| -if [[ $1 == *.dart ]]
|
| -then
|
| - entrypoint=$PWD/$1
|
| -fi
|
| -
|
| -# Run from dartdoc directory to get correct relative paths.
|
| -pushd `dirname "$0"` >>/dev/null
|
| -
|
| -compileToJs() {
|
| - if [ "$1.dart" -nt "static/$1.js" ]
|
| - then
|
| - ../../frog/minfrog --libdir=../../frog/lib \
|
| - --out=static/$1.js --compile-only $1.dart
|
| - echo "Compiled $1.dart."
|
| - fi
|
| -}
|
| -
|
| -# Generate the client-side .js files if needed.
|
| -compileToJs "client-static"
|
| -compileToJs "client-live-nav"
|
| -
|
| -# Clean the output directory.
|
| -if [ -d "docs" ]; then
|
| - rm -r docs
|
| -fi
|
| -mkdir docs
|
| -
|
| -# Copy the static files over.
|
| -cp -R static/* docs
|
| -
|
| -# Ditch the first arg so we can pass any extra arguments to dartdoc.
|
| -shift
|
| -
|
| -# Generate the user's docs.
|
| -if [ -a "../../out/Release_ia32/dart" ]; then
|
| - ../../out/Release_ia32/dart dartdoc.dart "$entrypoint" $@
|
| -elif [ -a "../../xcodebuild/Release_ia32/dart" ]; then
|
| - ../../xcodebuild/Release_ia32/dart dartdoc.dart "$entrypoint" $@
|
| -else
|
| - echo "Could not find the Dart VM. Did you run 'tools/build.py -m release'?"
|
| -fi
|
| -
|
| -popd >>/dev/null
|
|
|