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

Unified Diff: frog/scripts/bootstrap/build_frogpad_js.py

Issue 10548047: Remove frog from the repository. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move test and update apidoc.gyp. Created 8 years, 6 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
« no previous file with comments | « frog/reader.dart ('k') | frog/scripts/bootstrap/frog.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/scripts/bootstrap/build_frogpad_js.py
diff --git a/frog/scripts/bootstrap/build_frogpad_js.py b/frog/scripts/bootstrap/build_frogpad_js.py
deleted file mode 100644
index feb4637b16637228d477abe166d63d4aef95b0d4..0000000000000000000000000000000000000000
--- a/frog/scripts/bootstrap/build_frogpad_js.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 2011 Google Inc. All Rights Reserved.
-
-import os
-import platform
-import shutil
-import stat
-import sys
-
-DART_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)),
- os.pardir, os.pardir, os.pardir)
-FROG_DIR = os.path.join(DART_DIR, "frog")
-
-sys.path.append(FROG_DIR)
-import frog
-
-# Runs frog.dart on the dart vm to compile frogpad.dart to frogpad.js
-def main(args):
- product_dir = args[1]
- frogpad_js = os.path.join(product_dir, 'frog', 'bin', 'frogpad.js')
-
- if platform.system() == "Windows":
- with open(frogpad_js, 'w') as f:
- f.write("frogpad is not supported on Windows")
- return 0
-
- vm = os.path.join(product_dir, 'dart')
- frogpad_dart = os.path.join(
- DART_DIR, 'tools', 'testing', 'frogpad', 'frogpad.dart')
-
- if not os.path.exists(vm):
- raise Exception("cannot find dart vm '%s'" % vm)
-
- args = ['frog.py',
- '--verbose',
- '--vm=' + vm,
- '--',
- '--out=' + frogpad_js,
- frogpad_dart]
-
- exit_code = frog.main(args)
- if exit_code:
- return exit_code
-
- if not os.path.exists(frogpad_js):
- raise Exception("didn't generate '%s'" % frogpad_js)
-
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« no previous file with comments | « frog/reader.dart ('k') | frog/scripts/bootstrap/frog.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698