| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 # Create and copy pkg. | 211 # Create and copy pkg. |
| 212 PKG = join(SDK_tmp, 'pkg') | 212 PKG = join(SDK_tmp, 'pkg') |
| 213 os.makedirs(PKG) | 213 os.makedirs(PKG) |
| 214 | 214 |
| 215 # | 215 # |
| 216 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} | 216 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} |
| 217 # | 217 # |
| 218 | 218 |
| 219 for library in ['args', 'http', 'intl', 'logging', | 219 for library in ['args', 'http', 'intl', 'logging', |
| 220 'meta', 'oauth2', 'serialization', 'unittest']: | 220 'meta', 'oauth2', 'path', 'serialization', 'unittest']: |
| 221 | 221 |
| 222 copytree(join(HOME, 'pkg', library), join(PKG, library), | 222 copytree(join(HOME, 'pkg', library), join(PKG, library), |
| 223 ignore=ignore_patterns('*.svn', 'doc', 'docs', | 223 ignore=ignore_patterns('*.svn', 'doc', 'docs', |
| 224 '*.py', '*.gypi', '*.sh', 'packages')) | 224 '*.py', '*.gypi', '*.sh', 'packages')) |
| 225 | 225 |
| 226 # Create and copy tools. | 226 # Create and copy tools. |
| 227 UTIL = join(SDK_tmp, 'util') | 227 UTIL = join(SDK_tmp, 'util') |
| 228 os.makedirs(UTIL) | 228 os.makedirs(UTIL) |
| 229 | 229 |
| 230 # Create and copy Analyzer library into 'util' | 230 # Create and copy Analyzer library into 'util' |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 304 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 305 f.write(revision + '\n') | 305 f.write(revision + '\n') |
| 306 f.close() | 306 f.close() |
| 307 | 307 |
| 308 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 308 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 309 | 309 |
| 310 move(SDK_tmp, SDK) | 310 move(SDK_tmp, SDK) |
| 311 | 311 |
| 312 if __name__ == '__main__': | 312 if __name__ == '__main__': |
| 313 sys.exit(Main(sys.argv)) | 313 sys.exit(Main(sys.argv)) |
| OLD | NEW |