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

Unified Diff: lib/dartdoc/dartdoc

Issue 9722012: Get rid of bash for dartdoc and do the whole thing in dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | lib/dartdoc/dartdoc.dart » ('j') | lib/dartdoc/dartdoc.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/dartdoc
diff --git a/lib/dartdoc/dartdoc b/lib/dartdoc/dartdoc
deleted file mode 100755
index e9f761ed508d1dec58fe92883515eab01ad6fd4f..0000000000000000000000000000000000000000
--- a/lib/dartdoc/dartdoc
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/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.
-
-# 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"
-
-# Ditch the first arg so we can pass any extra arguments to dartdoc.
-shift
-
-# Generate the user's docs.
-dart dartdoc.dart "$entrypoint" $@
-
-popd >>/dev/null
« no previous file with comments | « no previous file | lib/dartdoc/dartdoc.dart » ('j') | lib/dartdoc/dartdoc.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698