| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 # Create and populate lib/html. | 334 # Create and populate lib/html. |
| 335 # | 335 # |
| 336 html_src_dir = join(HOME, 'lib', 'html') | 336 html_src_dir = join(HOME, 'lib', 'html') |
| 337 html_dest_dir = join(LIB, 'html') | 337 html_dest_dir = join(LIB, 'html') |
| 338 os.makedirs(html_dest_dir) | 338 os.makedirs(html_dest_dir) |
| 339 | 339 |
| 340 copyfile(join(html_src_dir, 'frog', 'html_frog.dart'), | 340 copyfile(join(html_src_dir, 'frog', 'html_frog.dart'), |
| 341 join(html_dest_dir, 'html_frog.dart')) | 341 join(html_dest_dir, 'html_frog.dart')) |
| 342 copyfile(join(html_src_dir, 'dartium', 'html_dartium.dart'), | 342 copyfile(join(html_src_dir, 'dartium', 'html_dartium.dart'), |
| 343 join(html_dest_dir, 'html_dartium.dart')) | 343 join(html_dest_dir, 'html_dartium.dart')) |
| 344 copyfile(join(html_src_dir, 'dartium', 'nativewrappers.dart'), |
| 345 join(html_dest_dir, 'nativewrappers.dart')) |
| 344 | 346 |
| 345 # | 347 # |
| 346 # Create and populate lib/dom. | 348 # Create and populate lib/dom. |
| 347 # | 349 # |
| 348 dom_src_dir = join(HOME, 'lib', 'dom') | 350 dom_src_dir = join(HOME, 'lib', 'dom') |
| 349 dom_dest_dir = join(LIB, 'dom') | 351 dom_dest_dir = join(LIB, 'dom') |
| 350 os.makedirs(dom_dest_dir) | 352 os.makedirs(dom_dest_dir) |
| 351 | 353 |
| 352 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'), | 354 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'), |
| 353 join(dom_dest_dir, 'dom_frog.dart')) | 355 join(dom_dest_dir, 'dom_frog.dart')) |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 if revision is not None: | 516 if revision is not None: |
| 515 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 517 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 516 f.write(revision + '\n') | 518 f.write(revision + '\n') |
| 517 f.close() | 519 f.close() |
| 518 | 520 |
| 519 move(SDK_tmp, SDK) | 521 move(SDK_tmp, SDK) |
| 520 utils.Touch(os.path.join(SDK, 'create.stamp')) | 522 utils.Touch(os.path.join(SDK, 'create.stamp')) |
| 521 | 523 |
| 522 if __name__ == '__main__': | 524 if __name__ == '__main__': |
| 523 sys.exit(Main(sys.argv)) | 525 sys.exit(Main(sys.argv)) |
| OLD | NEW |