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

Side by Side Diff: utils/compiler/remove_old_scripts.py

Issue 13841010: Remove some old leftover cleanup code (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « utils/compiler/compiler.gyp ('k') | 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
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file.
5
6 '''
7 Tool for deleting files given on the command line, and touching a
8 file on success.
9
10 Usage:
11 python tools/list_files.py FILE_TO_TOUCH FILES_TO_DELETE...
12 '''
13
14 import os
15 import sys
16
17
18 def main(argv):
19 file_to_touch = argv[1]
20 for filename in argv[2:]:
21 if os.path.exists(filename):
22 os.remove(filename)
23 with file(file_to_touch, 'a'):
24 os.utime(file_to_touch, None)
25
26
27 if __name__ == '__main__':
28 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « utils/compiler/compiler.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698