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

Side by Side Diff: editor/build/generate_sources.py

Issue 247103002: Move editor/build/truncate_files.py to tools/create_timestamp_file.py (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | editor/build/truncate_files.py » ('j') | 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 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 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. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import StringIO 6 import StringIO
7 import os 7 import os
8 import sys 8 import sys
9 9
10 from os.path import join 10 from os.path import join
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 'action_name': '%(pkg)s_action', 94 'action_name': '%(pkg)s_action',
95 'inputs': [ 95 'inputs': [
96 '%(pkg)s_sources.gypi', 96 '%(pkg)s_sources.gypi',
97 '<@(sources)', 97 '<@(sources)',
98 ], 98 ],
99 'outputs': [ 99 'outputs': [
100 '<(SHARED_INTERMEDIATE_DIR)/editor_deps/%(pkg)s.stamp', 100 '<(SHARED_INTERMEDIATE_DIR)/editor_deps/%(pkg)s.stamp',
101 ], 101 ],
102 'action': [ 102 'action': [
103 'python', 103 'python',
104 '../truncate_files.py', 104 '../../../tools/create_timestamp_file.py',
105 '<@(_outputs)', 105 '<@(_outputs)',
106 ], 106 ],
107 'message': 'Creating %(pkg)s time stamp.', 107 'message': 'Creating %(pkg)s time stamp.',
108 }, 108 },
109 """ % {'pkg':pkg} 109 """ % {'pkg':pkg}
110 110
111 111
112 def Main(argv): 112 def Main(argv):
113 # move up to the parent 'dart' directory 113 # move up to the parent 'dart' directory
114 base_directory = join(os.path.dirname(argv[0]), '..', '..') 114 base_directory = join(os.path.dirname(argv[0]), '..', '..')
(...skipping 24 matching lines...) Expand all
139 { 139 {
140 'action_name': 'editor_stamp_action', 140 'action_name': 'editor_stamp_action',
141 'inputs': [ 141 'inputs': [
142 %s, 142 %s,
143 ], 143 ],
144 'outputs': [ 144 'outputs': [
145 '<(SHARED_INTERMEDIATE_DIR)/editor_deps/editor.stamp', 145 '<(SHARED_INTERMEDIATE_DIR)/editor_deps/editor.stamp',
146 ], 146 ],
147 'action': [ 147 'action': [
148 'python', 148 'python',
149 '../truncate_files.py', 149 '../../../tools/create_timestamp_file.py',
150 '<@(_outputs)', 150 '<@(_outputs)',
151 ], 151 ],
152 'message': 'Creating editor time stamp.', 152 'message': 'Creating editor time stamp.',
153 }, 153 },
154 ], 154 ],
155 }, 155 },
156 ], 156 ],
157 } 157 }
158 """ % (",\n".join(stamps)) 158 """ % (",\n".join(stamps))
159 159
160 if __name__ == '__main__': 160 if __name__ == '__main__':
161 sys.exit(Main(sys.argv)) 161 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | editor/build/truncate_files.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698