Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(953)

Unified Diff: utils/dartdoc/dartdoc

Issue 9555013: Get dartdoc in the SDK and working correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update copyright date. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698