| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 copyfile(import_src, import_dst); | 425 copyfile(import_src, import_dst); |
| 426 | 426 |
| 427 # Write the 'revision' file | 427 # Write the 'revision' file |
| 428 revision = utils.GetSVNRevision() | 428 revision = utils.GetSVNRevision() |
| 429 if revision is not None: | 429 if revision is not None: |
| 430 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 430 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 431 f.write(revision + '\n') | 431 f.write(revision + '\n') |
| 432 f.close() | 432 f.close() |
| 433 | 433 |
| 434 move(SDK_tmp, SDK) | 434 move(SDK_tmp, SDK) |
| 435 utils.Touch(os.path.join(SDK, 'create.stamp')) |
| 435 | 436 |
| 436 if __name__ == '__main__': | 437 if __name__ == '__main__': |
| 437 sys.exit(Main(sys.argv)) | 438 sys.exit(Main(sys.argv)) |
| OLD | NEW |