OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, 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 sys | 7 import sys |
8 | 8 |
9 | 9 |
10 def Main(): | 10 def Main(): |
(...skipping 12 matching lines...) Expand all Loading... |
23 if exit_code: | 23 if exit_code: |
24 return exit_code | 24 return exit_code |
25 | 25 |
26 | 26 |
27 exit_code = os.system("python %(compiler)s/generate_source_list.py " | 27 exit_code = os.system("python %(compiler)s/generate_source_list.py " |
28 "javatests %(compiler)s/test_sources javatests" | 28 "javatests %(compiler)s/test_sources javatests" |
29 % locations) | 29 % locations) |
30 if exit_code: | 30 if exit_code: |
31 return exit_code | 31 return exit_code |
32 | 32 |
| 33 if exit_code: |
| 34 return exit_code |
| 35 |
33 if '--no-gyp' in sys.argv: | 36 if '--no-gyp' in sys.argv: |
34 print '--no-gyp is deprecated.' | 37 print '--no-gyp is deprecated.' |
35 | 38 |
36 return exit_code | 39 return exit_code |
37 | 40 |
38 | 41 |
39 if __name__ == '__main__': | 42 if __name__ == '__main__': |
40 sys.exit(Main()) | 43 sys.exit(Main()) |
OLD | NEW |