| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |