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