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

Unified Diff: dart/utils/apidoc/apidoc.dart

Issue 10174006: Use 'frog' in apidoc. Also fix broken dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: It's a setter, not a function. Created 8 years, 8 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: dart/utils/apidoc/apidoc.dart
diff --git a/dart/utils/apidoc/apidoc.dart b/dart/utils/apidoc/apidoc.dart
index 2d8aaf9b74c0c907a3412b98fd845cab45169a78..a327c2a4410dc4dad85cbd6db8f9f1e285eac9df 100644
--- a/dart/utils/apidoc/apidoc.dart
+++ b/dart/utils/apidoc/apidoc.dart
@@ -33,6 +33,7 @@ void main() {
int mode = doc.MODE_STATIC;
String outputDir = 'docs';
+ String compilerPath;
// Parse the command-line arguments.
for (int i = 0; i < args.length; i++) {
@@ -50,6 +51,8 @@ void main() {
default:
if (arg.startsWith('--out=')) {
outputDir = arg.substring('--out='.length);
+ } else if (arg.startsWith('--compiler=')) {
+ compilerPath = arg.substring('--compiler='.length);
} else {
print('Unknown option: $arg');
return;
@@ -59,9 +62,12 @@ void main() {
}
final frogPath = joinPaths(doc.scriptDir, '../../frog/');
- final compilerPath = joinPaths(frogPath, 'minfrog');
final libDir = joinPaths(frogPath, 'lib');
+ if (compilerPath === null) {
+ compilerPath = joinPaths(frogPath, 'frog.py');
+ }
+
doc.cleanOutputDirectory(outputDir);
// Compile the client-side code to JS.

Powered by Google App Engine
This is Rietveld 408576698