| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 ], [ | 316 ], [ |
| 317 ("var pathTo7zip = '../../third_party/7zip/7za.exe';", | 317 ("var pathTo7zip = '../../third_party/7zip/7za.exe';", |
| 318 "var pathTo7zip = '7zip/7za.exe';"), | 318 "var pathTo7zip = '7zip/7za.exe';"), |
| 319 ]) | 319 ]) |
| 320 | 320 |
| 321 version = utils.GetVersion() | 321 version = utils.GetVersion() |
| 322 | 322 |
| 323 # Copy dart2js. | 323 # Copy dart2js. |
| 324 CopyDart2Js(build_dir, SDK_tmp, version) | 324 CopyDart2Js(build_dir, SDK_tmp, version) |
| 325 | 325 |
| 326 revision = utils.GetRevision() | 326 revision = utils.GetSVNRevision() |
| 327 | 327 |
| 328 # Write the 'revision' file | 328 # Write the 'revision' file |
| 329 if revision is not None: | 329 if revision is not None: |
| 330 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 330 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 331 f.write(revision + '\n') | 331 f.write(revision + '\n') |
| 332 f.close() | 332 f.close() |
| 333 | 333 |
| 334 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 334 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 335 | 335 |
| 336 move(SDK_tmp, SDK) | 336 move(SDK_tmp, SDK) |
| 337 | 337 |
| 338 if __name__ == '__main__': | 338 if __name__ == '__main__': |
| 339 sys.exit(Main(sys.argv)) | 339 sys.exit(Main(sys.argv)) |
| OLD | NEW |