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

Side by Side Diff: webkit/compositor_bindings/copyfiles.py

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 3 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
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 if m == None: 54 if m == None:
55 m = re.match(pattern, text[1]) 55 m = re.match(pattern, text[1])
56 assert m 56 assert m
57 year = m.group(1) 57 year = m.group(1)
58 58
59 fixed_text = FixCopyrightHeaderText(text, year) 59 fixed_text = FixCopyrightHeaderText(text, year)
60 with open(filepath, "w") as f: 60 with open(filepath, "w") as f:
61 f.write(fixed_text) 61 f.write(fixed_text)
62 62
63 def Main(): 63 def Main():
64 files = Readfile("compositor.gyp")['variables']['webkit_compositor_sources'] 64 files = Readfile("compositor_bindings.gyp")['variables']['webkit_compositor_bi ndings_sources']
65 for f in files: 65 for f in files:
66 dst = Copy(f) 66 dst = Copy(f)
67 FixCopyrightHeader(dst) 67 FixCopyrightHeader(dst)
68 68
69 variables = Readfile("compositor_tests.gyp")['variables'] 69 variables = Readfile("compositor_bindings_tests.gyp")['variables']
70 files = variables['webkit_compositor_tests_sources'] 70 files = variables['webkit_compositor_bindings_tests_sources']
71 for f in files: 71 for f in files:
72 dst = Copy(f) 72 dst = Copy(f)
73 FixCopyrightHeader(dst) 73 FixCopyrightHeader(dst)
74 74
75 if __name__ == '__main__': 75 if __name__ == '__main__':
76 import sys 76 import sys
77 os.chdir(os.path.dirname(__file__)) 77 os.chdir(os.path.dirname(__file__))
78 sys.exit(Main()) 78 sys.exit(Main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698