Chromium Code Reviews| Index: tools/create_timestamp_file.py |
| =================================================================== |
| --- tools/create_timestamp_file.py (revision 0) |
| +++ tools/create_timestamp_file.py (revision 0) |
| @@ -0,0 +1,16 @@ |
| +# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| +# for details. All rights reserved. Use of this source code is governed by a |
| +# BSD-style license that can be found in the LICENSE file. |
| + |
| +import os |
| +import sys |
| + |
| +def main(args): |
| + file_name = args[1] |
| + dir_name = os.path.dirname(file_name) |
| + if not os.path.exists(dir_name): |
| + os.mkdir(dir_name) |
| + open(file_name, 'w').close() |
| + |
| +if __name__ == '__main__': |
|
kustermann
2013/06/06 15:23:49
We've already 'editor/build/truncate_files.py' to
ricow1
2013/06/06 17:17:30
Removed file and added timestamp functionality to
|
| + sys.exit(main(sys.argv)) |
| Property changes on: tools/create_timestamp_file.py |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |