| 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 |
| 11 import subprocess | 11 import subprocess |
| 12 import sys | 12 import sys |
| 13 | 13 |
| 14 SCRIPT_PATH = os.path.abspath(os.path.dirname(__file__)) | 14 SCRIPT_PATH = os.path.abspath(os.path.dirname(__file__)) |
| 15 DART_PATH = os.path.abspath(os.path.join(SCRIPT_PATH, '..', '..', '..', '..')) | 15 DART_PATH = os.path.abspath(os.path.join(SCRIPT_PATH, '..', '..', '..')) |
| 16 print '***', DART_PATH |
| 16 | 17 |
| 17 # Path to install latest IDL. | 18 # Path to install latest IDL. |
| 18 IDL_PATH = os.path.join(DART_PATH, 'third_party', 'WebCore') | 19 IDL_PATH = os.path.join(DART_PATH, 'third_party', 'WebCore') |
| 19 | 20 |
| 20 # Whitelist of files to keep. | 21 # Whitelist of files to keep. |
| 21 WHITELIST = [ | 22 WHITELIST = [ |
| 22 r'LICENSE(\S+)', | 23 r'LICENSE(\S+)', |
| 23 r'(\S+)\.idl'] | 24 r'(\S+)\.idl'] |
| 24 | 25 |
| 25 # README file to generate. | 26 # README file to generate. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 url, latest = GetWebkitSvnRevision() | 111 url, latest = GetWebkitSvnRevision() |
| 111 if not revision: | 112 if not revision: |
| 112 revision = latest | 113 revision = latest |
| 113 RefreshIDL(url, revision) | 114 RefreshIDL(url, revision) |
| 114 PruneExtraFiles() | 115 PruneExtraFiles() |
| 115 GenerateReadme(url, revision) | 116 GenerateReadme(url, revision) |
| 116 | 117 |
| 117 | 118 |
| 118 if __name__ == '__main__': | 119 if __name__ == '__main__': |
| 119 main() | 120 main() |
| OLD | NEW |