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

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

Issue 14017007: Roll IDLs. (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
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 13 matching lines...) Expand all
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/WebCore'
34 MODULES_SUBPATH = 'Source/modules'
34 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')
35 LOCAL_WEBKIT_README = """\ 36 LOCAL_WEBKIT_README = """\
36 This directory contains a copy of WebKit/WebCore IDL files. 37 This directory contains a copy of WebKit/WebCore IDL files.
37 See the attached LICENSE-* files in this directory. 38 See the attached LICENSE-* files in this directory.
38 39
39 Please do not modify the files here. They are periodically copied 40 Please do not modify the files here. They are periodically copied
40 using the script: $DART_ROOT/sdk/lib/html/scripts/%(script)s 41 using the script: $DART_ROOT/sdk/lib/html/scripts/%(script)s
41 42
42 The current version corresponds to: 43 The current version corresponds to:
43 URL: %(url)s 44 URL: %(url)s
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 'chrome': (CHROME_URL_PATTERN, CHROME_REV_PATTERN), 83 'chrome': (CHROME_URL_PATTERN, CHROME_REV_PATTERN),
83 } 84 }
84 85
85 # List of components to update. 86 # List of components to update.
86 UPDATE_LIST = [ 87 UPDATE_LIST = [
87 # (component, remote subpath, local path, local readme file, depth) 88 # (component, remote subpath, local path, local readme file, depth)
88 89
89 # WebKit IDL. 90 # WebKit IDL.
90 ('webkit', WEBCORE_SUBPATH, LOCAL_WEBKIT_IDL_PATH, LOCAL_WEBKIT_README, 91 ('webkit', WEBCORE_SUBPATH, LOCAL_WEBKIT_IDL_PATH, LOCAL_WEBKIT_README,
91 DEPTH_INFINITY), 92 DEPTH_INFINITY),
93 ('webkit', MODULES_SUBPATH, os.path.join(LOCAL_WEBKIT_IDL_PATH, 'modules'), LOCAL_WEBKIT_README,
94 DEPTH_INFINITY),
92 # Chrome IDL. 95 # Chrome IDL.
93 ('chrome', CHROME_IDL_SUBPATH, LOCAL_CHROME_IDL_PATH, LOCAL_CHROME_README, 96 ('chrome', CHROME_IDL_SUBPATH, LOCAL_CHROME_IDL_PATH, LOCAL_CHROME_README,
94 DEPTH_INFINITY), 97 DEPTH_INFINITY),
95 # Chrome PPAPI generators. Contains idl_parser.py which is used by the 98 # Chrome PPAPI generators. Contains idl_parser.py which is used by the
96 # Chrome IDL compiler. 99 # Chrome IDL compiler.
97 ('chrome', CHROME_IDL_PARSER_SUBPATH, LOCAL_CHROME_IDL_PARSER_PATH, 100 ('chrome', CHROME_IDL_PARSER_SUBPATH, LOCAL_CHROME_IDL_PARSER_PATH,
98 LOCAL_CHROME_README, DEPTH_FILES), 101 LOCAL_CHROME_README, DEPTH_FILES),
99 # ply files. 102 # ply files.
100 ('chrome', CHROME_PLY_SUBPATH, LOCAL_CHROME_PLY_PATH, LOCAL_CHROME_README, 103 ('chrome', CHROME_PLY_SUBPATH, LOCAL_CHROME_PLY_PATH, LOCAL_CHROME_README,
101 DEPTH_INFINITY), 104 DEPTH_INFINITY),
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 if revision is None: 222 if revision is None:
220 revision = latest 223 revision = latest
221 SaveVersionControlDir(local_path); 224 SaveVersionControlDir(local_path);
222 RefreshFiles(url, revision, remote_path, local_path, depth) 225 RefreshFiles(url, revision, remote_path, local_path, depth)
223 PruneExtraFiles(local_path) 226 PruneExtraFiles(local_path)
224 GenerateReadme(local_path, readme, url, revision) 227 GenerateReadme(local_path, readme, url, revision)
225 RestoreVersionControlDir(); 228 RestoreVersionControlDir();
226 229
227 if __name__ == '__main__': 230 if __name__ == '__main__':
228 main() 231 main()
OLDNEW
« sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('K') | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698