| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 import shutil | 8 import shutil |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 mode = cross_vm_pattern_match.group(2) | 149 mode = cross_vm_pattern_match.group(2) |
| 150 cross_compiling_builder(arch, mode) | 150 cross_compiling_builder(arch, mode) |
| 151 elif target_vm_pattern_match: | 151 elif target_vm_pattern_match: |
| 152 arch = target_vm_pattern_match.group(1) | 152 arch = target_vm_pattern_match.group(1) |
| 153 mode = target_vm_pattern_match.group(2) | 153 mode = target_vm_pattern_match.group(2) |
| 154 target_builder(arch, mode) | 154 target_builder(arch, mode) |
| 155 else: | 155 else: |
| 156 raise Exception("Unknown builder name %s" % name) | 156 raise Exception("Unknown builder name %s" % name) |
| 157 | 157 |
| 158 if __name__ == '__main__': | 158 if __name__ == '__main__': |
| 159 sys.exit(main()) | 159 try: |
| 160 sys.exit(main()) |
| 161 except OSError as e: |
| 162 sys.exit(e.errno) |
| OLD | NEW |