| OLD | NEW |
| 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #!/usr/bin/python | 5 #!/usr/bin/python |
| 6 | 6 |
| 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 8 # Use of this source code is governed by a BSD-style license that can be | 8 # Use of this source code is governed by a BSD-style license that can be |
| 9 # found in the LICENSE file. | 9 # found in the LICENSE file. |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 toolsBuildScript = os.path.join('.', 'editor', 'build', 'build.py') | 96 toolsBuildScript = os.path.join('.', 'editor', 'build', 'build.py') |
| 97 | 97 |
| 98 #TODO: debug statements to be removed in the future. | 98 #TODO: debug statements to be removed in the future. |
| 99 print "mode = " + mode | 99 print "mode = " + mode |
| 100 print "name = " + name | 100 print "name = " + name |
| 101 print "version = " + version | 101 print "version = " + version |
| 102 print "toolsBuildScript = " + os.path.abspath(toolsBuildScript) | 102 print "toolsBuildScript = " + os.path.abspath(toolsBuildScript) |
| 103 | 103 |
| 104 utils = GetUtils() | 104 utils = GetUtils() |
| 105 outdir = os.path.abspath(GetOutDir(utils, mode)) | 105 outdir = GetOutDir(utils, mode) |
| 106 cmds = [sys.executable, toolsBuildScript, | 106 cmds = [sys.executable, toolsBuildScript, |
| 107 '--mode=' + mode, '--revision=' + version, | 107 '--mode=' + mode, '--revision=' + version, |
| 108 '--name=' + name, '--out=' + outdir] | 108 '--name=' + name, '--out=' + outdir] |
| 109 local_env = os.environ | 109 local_env = os.environ |
| 110 if 'linux' in name: | 110 if 'linux' in name: |
| 111 javahome = os.path.join(os.path.expanduser('~'), 'jdk1.6.0_25') | 111 javahome = os.path.join(os.path.expanduser('~'), 'jdk1.6.0_25') |
| 112 local_env['JAVA_HOME'] = javahome | 112 local_env['JAVA_HOME'] = javahome |
| 113 local_env['PATH'] = (os.path.join(javahome, 'bin') + | 113 local_env['PATH'] = (os.path.join(javahome, 'bin') + |
| 114 os.pathsep + local_env['PATH']) | 114 os.pathsep + local_env['PATH']) |
| 115 | 115 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 status = ProcessCompiler(name) | 147 status = ProcessCompiler(name) |
| 148 | 148 |
| 149 if status: | 149 if status: |
| 150 print '@@@STEP_FAILURE@@@' | 150 print '@@@STEP_FAILURE@@@' |
| 151 | 151 |
| 152 return status | 152 return status |
| 153 | 153 |
| 154 | 154 |
| 155 if __name__ == '__main__': | 155 if __name__ == '__main__': |
| 156 sys.exit(main()) | 156 sys.exit(main()) |
| OLD | NEW |