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

Side by Side Diff: scripts/slave/dart/dart_util.py

Issue 11412004: Don't send mode flag to clobber command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 8 years, 1 month 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/python 1 #!/usr/bin/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 """Utils for the dart project. 6 """Utils for the dart project.
7 """ 7 """
8 8
9 import optparse 9 import optparse
10 import subprocess 10 import subprocess
11 import sys 11 import sys
12 12
13 def clobber(): 13 def clobber():
14 cmd = [sys.executable, 14 cmd = [sys.executable,
15 './tools/clean_output_directory.py', 15 './tools/clean_output_directory.py']
16 '--mode=all']
17 print 'Clobbering %s' % (' '.join(cmd)) 16 print 'Clobbering %s' % (' '.join(cmd))
18 return subprocess.call(cmd) 17 return subprocess.call(cmd)
19 18
20 def main(): 19 def main():
21 parser = optparse.OptionParser() 20 parser = optparse.OptionParser()
22 parser.add_option('', 21 parser.add_option('',
23 '--clobber', 22 '--clobber',
24 default=False, 23 default=False,
25 action='store_true', 24 action='store_true',
26 help='Clobber the builder') 25 help='Clobber the builder')
27 options, args = parser.parse_args() 26 options, args = parser.parse_args()
28 27
29 # args unused, use. 28 # args unused, use.
30 args.append('') 29 args.append('')
31 30
32 # Determine what to do based on options passed in. 31 # Determine what to do based on options passed in.
33 if options.clobber: 32 if options.clobber:
34 return clobber() 33 return clobber()
35 else: 34 else:
36 print("Nothing to do") 35 print("Nothing to do")
37 36
38 37
39 if '__main__' == __name__ : 38 if '__main__' == __name__ :
40 sys.exit(main()) 39 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