| Index: scripts/bootstrap/frog_bootstrap_wrapper.py
|
| ===================================================================
|
| --- scripts/bootstrap/frog_bootstrap_wrapper.py (revision 1140)
|
| +++ scripts/bootstrap/frog_bootstrap_wrapper.py (working copy)
|
| @@ -6,29 +6,21 @@
|
| import sys
|
|
|
| HOME = os.path.dirname(os.path.realpath(__file__))
|
| -# TODO(ngeoffray): does not work on Windows.
|
| HOME = os.path.join(HOME, os.pardir, os.pardir)
|
|
|
| sys.path.append(HOME)
|
| import frog
|
|
|
| def main(args):
|
| - for arg in args:
|
| - index = arg.find('--js_out=')
|
| - if index != -1:
|
| - js_out = arg[9:len(arg)];
|
| + js_out = args[1]
|
|
|
| - exit_code = 0
|
| - if js_out.find('Release') != -1:
|
| - exit_code = frog.main(args)
|
| - else:
|
| - shutil.copy(os.path.join(HOME, 'scripts', 'bootstrap', 'frog_wrapper.py'),
|
| - js_out)
|
| - if exit_code:
|
| - return exit_code
|
| + # TODO(ngeoffray): Create a script that will run the VM in production mode.
|
| + # if js_out.find('Release') != -1:
|
| + shutil.copy(os.path.join(HOME, 'scripts', 'bootstrap', 'frog_wrapper.py'),
|
| + js_out)
|
| os.chmod(js_out, stat.S_IXUSR | stat.S_IXGRP | stat.S_IRUSR |
|
| stat.S_IRGRP | stat.S_IWUSR)
|
| - return exit_code
|
| + return 0
|
|
|
|
|
| if __name__ == '__main__':
|
|
|