OLD | NEW |
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 Loading... |
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 Loading... |
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)) |
OLD | NEW |