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

Side by Side Diff: dart/utils/dartdoc/build_helper.dart

Issue 9454026: Skeleton dartdoc launcher. (Closed) Base URL: ssh://aaricia.aar/home/ahe/Dart/all/dart.googlecode.com.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « dart/dart.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #import('dart:io');
6
7 main() {
8 List<String> arguments = new Options().arguments;
9 print(arguments);
10 String dartVmLocation = '${arguments[0]}/dart';
11 String dartdocLocation = '${arguments[0]}/dart';
12 String dartdocScript = """
13 #!$dartVmLocation
14
15 main() {
16 print(\"Hello, World! I'm $dartdocLocation\");
17 }
18 """;
19 var f = new File(dartdocLocation);
20 var stream = f.openOutputStreamSync();
21 // TODO(ahe): Encode char codes as UTF-8.
22 stream.write(dartdocScript.charCodes());
23 stream.close();
24 // TODO(ahe): Make script executable.
25 // TODO(ahe): Also make a .bat file for Windows.
26 }
OLDNEW
« no previous file with comments | « dart/dart.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698