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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 # Copy lib/_internal/libraries.dart. | 222 # Copy lib/_internal/libraries.dart. |
223 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), | 223 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), |
224 join(LIB, '_internal', 'libraries.dart')) | 224 join(LIB, '_internal', 'libraries.dart')) |
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 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset') | 230 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset') |
231 os.makedirs(os.path.dirname(RESOURCE)) | 231 os.makedirs(os.path.dirname(RESOURCE)) |
232 copytree(join(HOME, 'sdk', 'lib', '_internal', 'pub', 'asset'), | 232 copytree(join(HOME, 'third_party', 'pkg_tested', 'pub', 'lib', 'src', |
| 233 'asset'), |
233 join(RESOURCE), | 234 join(RESOURCE), |
234 ignore=ignore_patterns('.svn')) | 235 ignore=ignore_patterns('.svn')) |
235 | 236 |
236 # Copy in 7zip for Windows. | 237 # Copy in 7zip for Windows. |
237 if HOST_OS == 'win32': | 238 if HOST_OS == 'win32': |
238 copytree(join(HOME, 'third_party', '7zip'), | 239 copytree(join(HOME, 'third_party', '7zip'), |
239 join(RESOURCE, '7zip'), | 240 join(RESOURCE, '7zip'), |
240 ignore=ignore_patterns('.svn')) | 241 ignore=ignore_patterns('.svn')) |
241 | 242 |
242 # Copy dart2js/pub. | 243 # Copy dart2js/pub. |
(...skipping 14 matching lines...) Expand all Loading... |
257 f.write('%s\n' % revision) | 258 f.write('%s\n' % revision) |
258 f.close() | 259 f.close() |
259 | 260 |
260 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 261 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
261 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md')
) | 262 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md')
) |
262 | 263 |
263 move(SDK_tmp, SDK) | 264 move(SDK_tmp, SDK) |
264 | 265 |
265 if __name__ == '__main__': | 266 if __name__ == '__main__': |
266 sys.exit(Main()) | 267 sys.exit(Main()) |
OLD | NEW |