Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: native_client_sdk/src/build_tools/build_projects.py

Issue 16022005: [NaCl SDK] Add keyboard interrupt handlers for python scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/build_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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]))
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/build_tools/build_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698