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

Side by Side Diff: tools/dom/scripts/idlsync.py

Issue 13843029: WebKit IDL roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « tools/dom/scripts/generator.py ('k') | no next file » | 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, 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 optparse 6 import optparse
7 import os 7 import os
8 import os.path 8 import os.path
9 import re 9 import re
10 import shutil 10 import shutil
(...skipping 12 matching lines...) Expand all
23 WHITELIST = [ 23 WHITELIST = [
24 r'LICENSE(\S+)', 24 r'LICENSE(\S+)',
25 r'(\S+)\.idl', 25 r'(\S+)\.idl',
26 r'(\S+)\.json', 26 r'(\S+)\.json',
27 r'(\S+)\.py', 27 r'(\S+)\.py',
28 ] 28 ]
29 29
30 # WebKit / WebCore info. 30 # WebKit / WebCore info.
31 WEBKIT_URL_PATTERN = r'"dartium_webkit_trunk": "(\S+)",' 31 WEBKIT_URL_PATTERN = r'"dartium_webkit_trunk": "(\S+)",'
32 WEBKIT_REV_PATTERN = r'"dartium_webkit_revision": "(\d+)",' 32 WEBKIT_REV_PATTERN = r'"dartium_webkit_revision": "(\d+)",'
33 WEBCORE_SUBPATH = 'Source/WebCore' 33 WEBCORE_SUBPATH = 'Source/core'
34 MODULES_SUBPATH = 'Source/modules' 34 MODULES_SUBPATH = 'Source/modules'
35 LOCAL_WEBKIT_IDL_PATH = os.path.join(DART_PATH, 'third_party', 'WebCore') 35 LOCAL_WEBKIT_IDL_PATH = os.path.join(DART_PATH, 'third_party', 'WebCore')
36 LOCAL_WEBKIT_README = """\ 36 LOCAL_WEBKIT_README = """\
37 This directory contains a copy of WebKit/WebCore IDL files. 37 This directory contains a copy of WebKit/WebCore IDL files.
38 See the attached LICENSE-* files in this directory. 38 See the attached LICENSE-* files in this directory.
39 39
40 Please do not modify the files here. They are periodically copied 40 Please do not modify the files here. They are periodically copied
41 using the script: $DART_ROOT/sdk/lib/html/scripts/%(script)s 41 using the script: $DART_ROOT/sdk/lib/html/scripts/%(script)s
42 42
43 The current version corresponds to: 43 The current version corresponds to:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 DEPS_PATTERNS = { 81 DEPS_PATTERNS = {
82 'webkit': (WEBKIT_URL_PATTERN, WEBKIT_REV_PATTERN), 82 'webkit': (WEBKIT_URL_PATTERN, WEBKIT_REV_PATTERN),
83 'chrome': (CHROME_URL_PATTERN, CHROME_REV_PATTERN), 83 'chrome': (CHROME_URL_PATTERN, CHROME_REV_PATTERN),
84 } 84 }
85 85
86 # List of components to update. 86 # List of components to update.
87 UPDATE_LIST = [ 87 UPDATE_LIST = [
88 # (component, remote subpath, local path, local readme file, depth) 88 # (component, remote subpath, local path, local readme file, depth)
89 89
90 # WebKit IDL. 90 # WebKit IDL.
91 ('webkit', WEBCORE_SUBPATH, LOCAL_WEBKIT_IDL_PATH, LOCAL_WEBKIT_README, 91 ('webkit', WEBCORE_SUBPATH, os.path.join(LOCAL_WEBKIT_IDL_PATH, 'core'), LOC AL_WEBKIT_README,
92
92 DEPTH_INFINITY), 93 DEPTH_INFINITY),
93 ('webkit', MODULES_SUBPATH, os.path.join(LOCAL_WEBKIT_IDL_PATH, 'modules'), LOCAL_WEBKIT_README, 94 ('webkit', MODULES_SUBPATH, os.path.join(LOCAL_WEBKIT_IDL_PATH, 'modules'), LOCAL_WEBKIT_README,
94 DEPTH_INFINITY), 95 DEPTH_INFINITY),
95 # Chrome IDL. 96 # Chrome IDL.
96 ('chrome', CHROME_IDL_SUBPATH, LOCAL_CHROME_IDL_PATH, LOCAL_CHROME_README, 97 ('chrome', CHROME_IDL_SUBPATH, LOCAL_CHROME_IDL_PATH, LOCAL_CHROME_README,
97 DEPTH_INFINITY), 98 DEPTH_INFINITY),
98 # Chrome PPAPI generators. Contains idl_parser.py which is used by the 99 # Chrome PPAPI generators. Contains idl_parser.py which is used by the
99 # Chrome IDL compiler. 100 # Chrome IDL compiler.
100 ('chrome', CHROME_IDL_PARSER_SUBPATH, LOCAL_CHROME_IDL_PARSER_PATH, 101 ('chrome', CHROME_IDL_PARSER_SUBPATH, LOCAL_CHROME_IDL_PARSER_PATH,
101 LOCAL_CHROME_README, DEPTH_FILES), 102 LOCAL_CHROME_README, DEPTH_FILES),
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 if revision is None: 223 if revision is None:
223 revision = latest 224 revision = latest
224 SaveVersionControlDir(local_path); 225 SaveVersionControlDir(local_path);
225 RefreshFiles(url, revision, remote_path, local_path, depth) 226 RefreshFiles(url, revision, remote_path, local_path, depth)
226 PruneExtraFiles(local_path) 227 PruneExtraFiles(local_path)
227 GenerateReadme(local_path, readme, url, revision) 228 GenerateReadme(local_path, readme, url, revision)
228 RestoreVersionControlDir(); 229 RestoreVersionControlDir();
229 230
230 if __name__ == '__main__': 231 if __name__ == '__main__':
231 main() 232 main()
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698