| 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 # |
| 11 # The SDK will be used either from the command-line or from the editor. | 11 # The SDK will be used either from the command-line or from the editor. |
| 12 # Top structure is | 12 # Top structure is |
| 13 # | 13 # |
| 14 # ..dart-sdk/ | 14 # ..dart-sdk/ |
| 15 # ....bin/ | 15 # ....bin/ |
| 16 # ......dart or dart.exe (executable) | 16 # ......dart or dart.exe (executable) |
| 17 # ......frogc.dart | 17 # ......frogc.dart |
| 18 # ......frogsh (coming later) | |
| 19 # ....lib/ | 18 # ....lib/ |
| 20 # ......builtin/ | 19 # ......builtin/ |
| 21 # ........builtin_runtime.dart | 20 # ........builtin_runtime.dart |
| 22 # ......io/ | 21 # ......io/ |
| 23 # ........io_runtime.dart | 22 # ........io_runtime.dart |
| 24 # ........runtime/ | 23 # ........runtime/ |
| 25 # ......core/ | 24 # ......core/ |
| 26 # ........core_{frog, runtime}.dart | 25 # ........core_{frog, runtime}.dart |
| 27 # ........{frog, runtime}/ | 26 # ........{frog, runtime}/ |
| 28 # ......coreimpl/ | 27 # ......coreimpl/ |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 revision = utils.GetSVNRevision() | 428 revision = utils.GetSVNRevision() |
| 430 if revision is not None: | 429 if revision is not None: |
| 431 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 430 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 432 f.write(revision + '\n') | 431 f.write(revision + '\n') |
| 433 f.close() | 432 f.close() |
| 434 | 433 |
| 435 move(SDK_tmp, SDK) | 434 move(SDK_tmp, SDK) |
| 436 | 435 |
| 437 if __name__ == '__main__': | 436 if __name__ == '__main__': |
| 438 sys.exit(Main(sys.argv)) | 437 sys.exit(Main(sys.argv)) |
| OLD | NEW |