Chromium Code Reviews| 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) { |
|
Bob Nystrom
2012/04/24 16:03:58
== null
ahe
2012/04/25 08:26:55
As I mentioned in the other code review, I'm stick
Bob Nystrom
2012/04/25 18:03:41
Ha, suit yourself. Live in fear! :)
|
| + compilerPath = joinPaths(frogPath, 'frog.py'); |
| + } |
| + |
| doc.cleanOutputDirectory(outputDir); |
| // Compile the client-side code to JS. |