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

Unified Diff: frog/frog.py

Issue 8823010: frog: life is better with colors :) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 9 years 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
« no previous file with comments | « no previous file | frog/frog_options.dart » ('j') | frog/frog_options.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/frog.py
diff --git a/frog/frog.py b/frog/frog.py
index cbd5492c62d5e9e8f1a76a0b0296e6227b14676f..e1d784ab4a8594b0db53699f231c8e8e62b4e5b0 100755
--- a/frog/frog.py
+++ b/frog/frog.py
@@ -154,6 +154,7 @@ def compileAndRun(options, args, dart):
for i in range(len(args)):
if args[i].startswith('--out'):
outfile_given = True
+ outfile = args[i][6:]
break;
if options.verbose: print "nodeArgs %s" % ' '.join(nodeArgs);
@@ -204,6 +205,7 @@ def compileAndRun(options, args, dart):
result = 0
if not outfile_given:
+ print 'Compilation succeded.'
if not options.html:
js_cmd = options.js_cmd
result = execute(js_cmd.split(' ') + [outfile] + nodeArgs)
@@ -212,6 +214,8 @@ def compileAndRun(options, args, dart):
f.write(HTML)
f.close()
result = execute([browser, outhtml])
+ else:
+ print 'Compilation succeded. Code generated in %s' % outfile
if cleanup: shutil.rmtree(workdir)
if result != 0:
« no previous file with comments | « no previous file | frog/frog_options.dart » ('j') | frog/frog_options.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698