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

Side by Side Diff: tools/build.py

Issue 11440014: Bugfix in tools/build.py: Error -> Exception rename (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | no next file » | 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 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 7
8 import optparse 8 import optparse
9 import os 9 import os
10 import shutil 10 import shutil
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 'android_sdk_tools=%s' % android_sdk_platform_tools 182 'android_sdk_tools=%s' % android_sdk_platform_tools
183 ] 183 ]
184 184
185 os.environ['GYP_DEFINES'] = ' '.join(gypDefinesList) 185 os.environ['GYP_DEFINES'] = ' '.join(gypDefinesList)
186 186
187 187
188 def Execute(args): 188 def Execute(args):
189 process = subprocess.Popen(args) 189 process = subprocess.Popen(args)
190 process.wait() 190 process.wait()
191 if process.returncode != 0: 191 if process.returncode != 0:
192 raise Error(args[0] + " failed") 192 raise Exception(args[0] + " failed")
193 193
194 194
195 def GClientRunHooks(): 195 def GClientRunHooks():
196 Execute(['gclient', 'runhooks']) 196 Execute(['gclient', 'runhooks'])
197 197
198 198
199 def RunhooksIfNeeded(host_os, mode, arch, target_os): 199 def RunhooksIfNeeded(host_os, mode, arch, target_os):
200 if host_os != 'linux': 200 if host_os != 'linux':
201 return 201 return
202 build_root = utils.GetBuildRoot(host_os) 202 build_root = utils.GetBuildRoot(host_os)
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 process.wait() 319 process.wait()
320 if process.returncode != 0: 320 if process.returncode != 0:
321 print "BUILD FAILED" 321 print "BUILD FAILED"
322 return 1 322 return 1
323 323
324 return 0 324 return 0
325 325
326 326
327 if __name__ == '__main__': 327 if __name__ == '__main__':
328 sys.exit(Main()) 328 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698