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

Side by Side Diff: native_client_sdk/src/build_tools/build_sdk.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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Entry point for both build and try bots. 6 """Entry point for both build and try bots.
7 7
8 This script is invoked from XXX, usually without arguments 8 This script is invoked from XXX, usually without arguments
9 to package an SDK. It automatically determines whether 9 to package an SDK. It automatically determines whether
10 this SDK is for mac, win, linux. 10 this SDK is for mac, win, linux.
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 if options.archive: 943 if options.archive:
944 BuildStepArchiveBundle('build', pepper_ver, clnumber, tarfile) 944 BuildStepArchiveBundle('build', pepper_ver, clnumber, tarfile)
945 if platform == 'linux': 945 if platform == 'linux':
946 BuildStepArchiveBundle('naclports', pepper_ver, clnumber, ports_tarfile) 946 BuildStepArchiveBundle('naclports', pepper_ver, clnumber, ports_tarfile)
947 BuildStepArchiveSDKTools() 947 BuildStepArchiveSDKTools()
948 948
949 return 0 949 return 0
950 950
951 951
952 if __name__ == '__main__': 952 if __name__ == '__main__':
953 sys.exit(main(sys.argv)) 953 try:
954 sys.exit(main(sys.argv))
955 except KeyboardInterrupt:
956 buildbot_common.ErrorExit('build_sdk: interrupted')
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/build_projects.py ('k') | native_client_sdk/src/build_tools/buildbot_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698