| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 dom_dest_dir = join(LIB, 'dom') | 323 dom_dest_dir = join(LIB, 'dom') |
| 324 os.makedirs(dom_dest_dir) | 324 os.makedirs(dom_dest_dir) |
| 325 | 325 |
| 326 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'), | 326 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'), |
| 327 join(dom_dest_dir, 'dom_frog.dart')) | 327 join(dom_dest_dir, 'dom_frog.dart')) |
| 328 | 328 |
| 329 # | 329 # |
| 330 # Create and populate lib/{crypto, json, uri, utf}. | 330 # Create and populate lib/{crypto, json, uri, utf}. |
| 331 # | 331 # |
| 332 | 332 |
| 333 for library in ['crypto', 'json', 'unittest', 'uri', 'utf']: | 333 for library in ['crypto', 'json', 'unittest', 'uri', 'utf', 'i18n']: |
| 334 src_dir = join(HOME, 'lib', library) | 334 src_dir = join(HOME, 'lib', library) |
| 335 dest_dir = join(LIB, library) | 335 dest_dir = join(LIB, library) |
| 336 os.makedirs(dest_dir) | 336 os.makedirs(dest_dir) |
| 337 | 337 |
| 338 for filename in os.listdir(src_dir): | 338 for filename in os.listdir(src_dir): |
| 339 if filename.endswith('.dart'): | 339 if filename.endswith('.dart'): |
| 340 copyfile(join(src_dir, filename), join(dest_dir, filename)) | 340 copyfile(join(src_dir, filename), join(dest_dir, filename)) |
| 341 | 341 |
| 342 # Create and populate lib/dartdoc | 342 # Create and populate lib/dartdoc |
| 343 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc') | 343 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc') |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 if revision is not None: | 529 if revision is not None: |
| 530 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 530 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 531 f.write(revision + '\n') | 531 f.write(revision + '\n') |
| 532 f.close() | 532 f.close() |
| 533 | 533 |
| 534 move(SDK_tmp, SDK) | 534 move(SDK_tmp, SDK) |
| 535 utils.Touch(os.path.join(SDK, 'create.stamp')) | 535 utils.Touch(os.path.join(SDK, 'create.stamp')) |
| 536 | 536 |
| 537 if __name__ == '__main__': | 537 if __name__ == '__main__': |
| 538 sys.exit(Main(sys.argv)) | 538 sys.exit(Main(sys.argv)) |
| OLD | NEW |