OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import optparse | 6 import optparse |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 | 9 |
10 import buildbot_common | 10 import buildbot_common |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 configs = [options.config] | 240 configs = [options.config] |
241 else: | 241 else: |
242 configs = ['Debug', 'Release'] | 242 configs = ['Debug', 'Release'] |
243 for config in configs: | 243 for config in configs: |
244 BuildProjects(pepperdir, platform, project_tree, config=config) | 244 BuildProjects(pepperdir, platform, project_tree, config=config) |
245 | 245 |
246 return 0 | 246 return 0 |
247 | 247 |
248 | 248 |
249 if __name__ == '__main__': | 249 if __name__ == '__main__': |
250 sys.exit(main(sys.argv)) | 250 try: |
| 251 sys.exit(main(sys.argv)) |
| 252 except KeyboardInterrupt: |
| 253 buildbot_common.ErrorExit('%s: interrupted' % os.path.basename(sys.argv[0])) |
OLD | NEW |