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

Unified Diff: utils/apidoc/apidoc

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/apidoc/apidoc
diff --git a/utils/apidoc/apidoc b/utils/apidoc/apidoc
index ff7d8cf0c2d911d5c10644fa0513d4ce2713e234..14f640f73869aa693ad916dbbb9d69895ac14bd1 100755
--- a/utils/apidoc/apidoc
+++ b/utils/apidoc/apidoc
@@ -20,10 +20,11 @@
pushd `dirname "$0"` >>/dev/null
compileToJs() {
- if [ "../dartdoc/$1.dart" -nt "../dartdoc/static/$1.js" ]
+ if [ "../../lib/dartdoc/$1.dart" -nt "../../lib/dartdoc/static/$1.js" ]
then
../../frog/minfrog --libdir=../../frog/lib \
- --out=../dartdoc/static/$1.js --compile-only ../dartdoc/$1.dart
+ --out=../../lib/dartdoc/static/$1.js --compile-only \
+ ../../lib/dartdoc/$1.dart
echo "Compiled $1.dart."
fi
}
@@ -45,7 +46,7 @@ grep "'*.dart'" ../../runtime/bin/io_sources.gypi | sed s/\',//g | \
sed s,\',../../runtime/bin/,g | xargs cat > io_libs.dart
# Copy the static files over.
-cp ../dartdoc/static/* docs
+cp ../../lib/dartdoc/static/* docs
# Overlay any apidoc-specific ones.
cp static/* docs
@@ -55,12 +56,6 @@ shift
# Figure out where the dart VM executable is.
# Generate the user's docs.
-if [ -a "../../out/Release_ia32/dart" ]; then
- ../../out/Release_ia32/dart ../apidoc/apidoc.dart
-elif [ -a "../../xcodebuild/Release_ia32/dart" ]; then
- ../../xcodebuild/Release_ia32/dart ../apidoc/apidoc.dart
-else
- echo "Could not find the Dart VM. Did you run 'tools/build.py -m release'?"
-fi
+dart ../apidoc/apidoc.dart $@
popd >>/dev/null
« frog/presubmit.py ('K') | « tools/test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698