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

Unified Diff: frog/scripts/bootstrap/frog_wrapper.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/scripts/bootstrap/frog_bootstrap_wrapper.py ('k') | frog/scripts/bootstrap/frogc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/scripts/bootstrap/frog_wrapper.py
diff --git a/frog/scripts/bootstrap/frog_wrapper.py b/frog/scripts/bootstrap/frog_wrapper.py
deleted file mode 100644
index c66265dd753ca399b699e7b337e126d5568676b7..0000000000000000000000000000000000000000
--- a/frog/scripts/bootstrap/frog_wrapper.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-# for details. All rights reserved. Use of this source code is governed by a
-# BSD-style license that can be found in the LICENSE file.
-
-import imp
-import os
-import sys
-
-def main(args):
- home = os.path.join(HOME, 'frog.py')
-
- if not os.path.exists(home):
- print "Could not find %s" % home
- return 1
-
- frog_args = [ 'frog.py', '--vm=%s' % VM]
- js_cmd_flag = '--js_cmd=%s --crankshaft' % D8
- vm_flags = None
- for arg in args:
- if arg.startswith('--js_cmd'):
- js_cmd_flag = arg
- if arg.startswith('--vm_flags'):
- vm_flags = arg
- if js_cmd_flag in args:
- args.remove(js_cmd_flag)
- if vm_flags in args:
- args.remove(vm_flags)
- frog_args.append(js_cmd_flag)
- if vm_flags:
- frog_args.append(vm_flags)
- frog_args.append('--')
- frog_args.extend(args[1:])
-
- filename = None
- exit_code = 1
- try:
- # Load frog.py and invoke it.
- paths = [os.path.dirname(home)]
- (filename, pathname, description) = imp.find_module('frog', paths)
- module = imp.load_module('frog', filename, pathname, description)
- exit_code = module.main(frog_args)
- finally:
- if filename:
- filename.close()
-
- return exit_code
« no previous file with comments | « frog/scripts/bootstrap/frog_bootstrap_wrapper.py ('k') | frog/scripts/bootstrap/frogc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698