Index: utils/apidoc/apidoc |
diff --git a/utils/apidoc/apidoc b/utils/apidoc/apidoc |
index e09d3e8ed63c0a2c2917dc658da73f6739f726ad..ff7d8cf0c2d911d5c10644fa0513d4ce2713e234 100755 |
--- a/utils/apidoc/apidoc |
+++ b/utils/apidoc/apidoc |
@@ -52,7 +52,15 @@ cp static/* docs |
# Ditch the first arg so we can pass any extra arguments to dartdoc. |
shift |
+# Figure out where the dart VM executable is. |
+ |
# Generate the user's docs. |
-../../frog/minfrog --libdir=../../frog/lib ../apidoc/apidoc.dart |
+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 |
popd >>/dev/null |