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

Side by Side Diff: tools/clean_output_directory.py

Issue 10823341: Update clobber functionality to clobber runtime/{Debug,Release} on windows (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | 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 shutil 9 import shutil
10 import sys 10 import sys
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 if not ProcessOptions(options): 47 if not ProcessOptions(options):
48 parser.print_help() 48 parser.print_help()
49 return 1 49 return 1
50 50
51 # Delete the output for the targets for each requested configuration. 51 # Delete the output for the targets for each requested configuration.
52 for mode in options.mode: 52 for mode in options.mode:
53 for arch in options.arch: 53 for arch in options.arch:
54 build_root = utils.GetBuildRoot(HOST_OS, mode=mode, arch=arch) 54 build_root = utils.GetBuildRoot(HOST_OS, mode=mode, arch=arch)
55 print "Deleting %s" % (build_root) 55 print "Deleting %s" % (build_root)
56 shutil.rmtree(build_root, ignore_errors=True) 56 shutil.rmtree(build_root, ignore_errors=True)
57 # On windows we have additional object files within the runtime library.
58 if HOST_OS == 'win32':
59 runtime_root = 'runtime/' + build_root
60 print "Deleting %s" % (runtime_root)
61 shutil.rmtree(runtime_root, ignore_errors=True)
57 return 0 62 return 0
58 63
59 if __name__ == '__main__': 64 if __name__ == '__main__':
60 sys.exit(Main()) 65 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