| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 | 216 |
| 217 # Create and copy pkg. | 217 # Create and copy pkg. |
| 218 PKG = join(SDK_tmp, 'pkg') | 218 PKG = join(SDK_tmp, 'pkg') |
| 219 os.makedirs(PKG) | 219 os.makedirs(PKG) |
| 220 | 220 |
| 221 # | 221 # |
| 222 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} | 222 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} |
| 223 # | 223 # |
| 224 | 224 |
| 225 for library in ['args', 'http', 'intl', 'logging', 'meta', 'oauth2', 'path', | 225 for library in ['args', 'http', 'intl', 'logging', 'meta', 'oauth2', 'pathos', |
| 226 'serialization', 'unittest', 'yaml']: | 226 'serialization', 'unittest', 'yaml']: |
| 227 | 227 |
| 228 copytree(join(HOME, 'pkg', library), join(PKG, library), | 228 copytree(join(HOME, 'pkg', library), join(PKG, library), |
| 229 ignore=ignore_patterns('*.svn', 'doc', 'docs', | 229 ignore=ignore_patterns('*.svn', 'doc', 'docs', |
| 230 '*.py', '*.gypi', '*.sh', 'packages')) | 230 '*.py', '*.gypi', '*.sh', 'packages')) |
| 231 | 231 |
| 232 # Create and copy tools. | 232 # Create and copy tools. |
| 233 UTIL = join(SDK_tmp, 'util') | 233 UTIL = join(SDK_tmp, 'util') |
| 234 os.makedirs(UTIL) | 234 os.makedirs(UTIL) |
| 235 | 235 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 293 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 294 f.write(revision + '\n') | 294 f.write(revision + '\n') |
| 295 f.close() | 295 f.close() |
| 296 | 296 |
| 297 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 297 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 298 | 298 |
| 299 move(SDK_tmp, SDK) | 299 move(SDK_tmp, SDK) |
| 300 | 300 |
| 301 if __name__ == '__main__': | 301 if __name__ == '__main__': |
| 302 sys.exit(Main(sys.argv)) | 302 sys.exit(Main(sys.argv)) |
| OLD | NEW |