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

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

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « third_party/chrome/tools/util_cc_helper.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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return update 171 return update
172 172
173 173
174 def main(): 174 def main():
175 deps = GetDeps() 175 deps = GetDeps()
176 update = ParseOptions() 176 update = ParseOptions()
177 for (component, remote_path, local_path, readme) in UPDATE_LIST: 177 for (component, remote_path, local_path, readme) in UPDATE_LIST:
178 if component in update.keys(): 178 if component in update.keys():
179 revision = update[component] 179 revision = update[component]
180 url, latest = GetSvnRevision(deps, component) 180 url, latest = GetSvnRevision(deps, component)
181 if not revision: 181 if revision is None:
182 revision = latest 182 revision = latest
183 RefreshIDL(url, revision, remote_path, local_path) 183 RefreshIDL(url, revision, remote_path, local_path)
184 PruneExtraFiles(local_path) 184 PruneExtraFiles(local_path)
185 GenerateReadme(local_path, readme, url, revision) 185 GenerateReadme(local_path, readme, url, revision)
186 186
187 187
188 if __name__ == '__main__': 188 if __name__ == '__main__':
189 main() 189 main()
OLDNEW
« no previous file with comments | « third_party/chrome/tools/util_cc_helper.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698