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

Unified Diff: dart/frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py

Issue 10164004: Remove frogsh. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 years, 8 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 | « dart/frog/scripts/bootstrap/frogsh.bat ('k') | dart/frog/scripts/buildbot_annotated_steps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py
diff --git a/dart/frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py b/dart/frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py
deleted file mode 100644
index b74c0de722dc2282cd183bdc00fc2f7e81c67fbd..0000000000000000000000000000000000000000
--- a/dart/frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 2011 Google Inc. All Rights Reserved.
-
-import os
-import platform
-import shutil
-import stat
-import sys
-
-HOME = os.path.dirname(os.path.realpath(__file__))
-HOME = os.path.join(HOME, os.pardir, os.pardir)
-
-FROGSH_FALLBACK = """#!/bin/sh
-echo -en "\033[31mERROR\033[0m: Building frogsh in 'debug' mode requires "
-echo "building the dart"
-echo "runtime in 'release' mode. Retry building frogsh as follows:"
-echo " > rm $0"
-echo " > ./tools/build.py -m release runtime"
-echo " > ./tools/build.py -m debug frogsh"
-exit 1
-"""
-
-sys.path.append(HOME)
-import frog
-
-def main(args):
- product_dir = args[1]
- js_out = os.path.join(product_dir, 'frog', 'bin', 'frogsh')
- vm = os.path.join(product_dir, 'dart')
- id = platform.system()
- if id == 'Windows' or id == 'Microsoft':
- vm = vm + '.exe'
- shutil.copy(os.path.join(HOME, 'scripts', 'bootstrap', 'frogsh.bat'),
- js_out + '.bat')
- frog_args = ['frog.py', '--vm=' + vm,
- '--js_cmd=node --crankshaft',
- '--',
- '--out=' + js_out, 'minfrog.dart']
-
- # TODO(ngeoffray): Compile frogsh without checks integrated.
- # if js_out.find('Release') != -1:
- exit_code = frog.main(frog_args)
- if exit_code:
- if js_out.find('Release') != -1:
- return exit_code
- else:
- with open(js_out, 'w') as f:
- f.write(FROGSH_FALLBACK)
-
- os.chmod(js_out, stat.S_IXUSR | stat.S_IXGRP | stat.S_IRUSR |
- stat.S_IRGRP | stat.S_IWUSR)
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« no previous file with comments | « dart/frog/scripts/bootstrap/frogsh.bat ('k') | dart/frog/scripts/buildbot_annotated_steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698