OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import shutil | 5 import shutil |
6 import os | 6 import os |
7 import re | 7 import re |
8 | 8 |
9 prefixes = ["../../third_party/WebKit/Source/WebCore/platform/chromium/support", | 9 prefixes = ["../../third_party/WebKit/Source/WebCore/platform/chromium/support", |
10 "../../third_party/WebKit/Source/WebKit/chromium/src", | 10 "../../third_party/WebKit/Source/WebKit/chromium/src", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 fixed_text = FixCopyrightHeaderText(text, year) | 57 fixed_text = FixCopyrightHeaderText(text, year) |
58 with open(filepath, "w") as f: | 58 with open(filepath, "w") as f: |
59 f.write(fixed_text) | 59 f.write(fixed_text) |
60 | 60 |
61 def Main(): | 61 def Main(): |
62 files = Readfile("compositor.gyp")['variables']['webkit_compositor_sources'] | 62 files = Readfile("compositor.gyp")['variables']['webkit_compositor_sources'] |
63 for f in files: | 63 for f in files: |
64 dst = Copy(f) | 64 dst = Copy(f) |
65 FixCopyrightHeader(dst) | 65 FixCopyrightHeader(dst) |
66 | 66 |
67 files = Readfile("compositor.gyp")['variables']['webkit_compositor_tests_sourc
es'] | 67 variables = Readfile("compositor_tests.gyp")['variables'] |
| 68 files = variables['webkit_compositor_tests_sources'] |
68 for f in files: | 69 for f in files: |
69 dst = Copy(f) | 70 dst = Copy(f) |
70 FixCopyrightHeader(dst) | 71 FixCopyrightHeader(dst) |
71 | 72 |
72 if __name__ == '__main__': | 73 if __name__ == '__main__': |
73 import sys | 74 import sys |
74 os.chdir(os.path.dirname(__file__)) | 75 os.chdir(os.path.dirname(__file__)) |
75 sys.exit(Main()) | 76 sys.exit(Main()) |
OLD | NEW |