| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 # | 6 # |
| 7 # A script which will be invoked from gyp to create an SDK. | 7 # A script which will be invoked from gyp to create an SDK. |
| 8 # | 8 # |
| 9 # Usage: create_sdk.py sdk_directory | 9 # Usage: create_sdk.py sdk_directory |
| 10 # | 10 # |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 # ......frog/ | 31 # ......frog/ |
| 32 # ......html/ | 32 # ......html/ |
| 33 # ........html.dart | 33 # ........html.dart |
| 34 # ......htmlimpl/ | 34 # ......htmlimpl/ |
| 35 # ........htmlimpl.dart | 35 # ........htmlimpl.dart |
| 36 # ......json/ | 36 # ......json/ |
| 37 # ........json_{frog}.dart | 37 # ........json_{frog}.dart |
| 38 # ........{frog}/ | 38 # ........{frog}/ |
| 39 # ......(more will come here - io, etc) | 39 # ......(more will come here - io, etc) |
| 40 # ....util/ | 40 # ....util/ |
| 41 # ......dartdoc/ | |
| 42 # ......(more will come here) | 41 # ......(more will come here) |
| 43 | 42 |
| 44 | 43 |
| 45 | 44 |
| 46 import os | 45 import os |
| 47 import re | 46 import re |
| 48 import sys | 47 import sys |
| 49 import tempfile | 48 import tempfile |
| 50 import utils | 49 import utils |
| 51 | 50 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 for filename in coreimpl_runtime_sources: | 308 for filename in coreimpl_runtime_sources: |
| 310 if filename.endswith('.dart'): | 309 if filename.endswith('.dart'): |
| 311 dest_file.write('#source("runtime/' + filename + '");\n') | 310 dest_file.write('#source("runtime/' + filename + '");\n') |
| 312 dest_file.close() | 311 dest_file.close() |
| 313 | 312 |
| 314 # Create and copy tools. | 313 # Create and copy tools. |
| 315 | 314 |
| 316 UTIL = join(SDK_tmp, 'util') | 315 UTIL = join(SDK_tmp, 'util') |
| 317 os.makedirs(UTIL) | 316 os.makedirs(UTIL) |
| 318 | 317 |
| 319 copytree(join(HOME, 'utils', 'dartdoc'), join(UTIL, 'dartdoc'), | |
| 320 ignore=ignore_patterns('.svn')) | |
| 321 | |
| 322 move(SDK_tmp, SDK) | 318 move(SDK_tmp, SDK) |
| 323 | 319 |
| 324 if __name__ == '__main__': | 320 if __name__ == '__main__': |
| 325 sys.exit(Main(sys.argv)) | 321 sys.exit(Main(sys.argv)) |
| OLD | NEW |