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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 | 211 |
212 for library in [join('_internal', 'compiler'), | 212 for library in [join('_internal', 'compiler'), |
213 join('_internal', 'dartdoc'), | 213 join('_internal', 'dartdoc'), |
214 join('_internal', 'pub', 'resource'), | 214 join('_internal', 'pub', 'resource'), |
215 'async', 'collection', '_collection_dev', 'core', | 215 'async', 'collection', '_collection_dev', 'core', |
216 'crypto', 'io', 'isolate', | 216 'crypto', 'io', 'isolate', |
217 join('chrome', 'dart2js'), join('chrome', 'dartium'), | 217 join('chrome', 'dart2js'), join('chrome', 'dartium'), |
218 join('html', 'dart2js'), join('html', 'dartium'), | 218 join('html', 'dart2js'), join('html', 'dartium'), |
219 join('html', 'html_common'), | 219 join('html', 'html_common'), |
220 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 220 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
221 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_data', | 221 'js', 'json', 'math', 'mdv_observe_impl', 'mirrors', 'typed_da ta', |
vsm
2013/05/29 04:55:39
line length
| |
222 join('svg', 'dart2js'), join('svg', 'dartium'), | 222 join('svg', 'dart2js'), join('svg', 'dartium'), |
223 'utf', | 223 'utf', |
224 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 224 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
225 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 225 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
226 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 226 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
227 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 227 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
228 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', | 228 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
229 '.gitignore')) | 229 '.gitignore')) |
230 | 230 |
231 # Copy lib/_internal/libraries.dart. | 231 # Copy lib/_internal/libraries.dart. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
302 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 302 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
303 f.write(revision + '\n') | 303 f.write(revision + '\n') |
304 f.close() | 304 f.close() |
305 | 305 |
306 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 306 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
307 | 307 |
308 move(SDK_tmp, SDK) | 308 move(SDK_tmp, SDK) |
309 | 309 |
310 if __name__ == '__main__': | 310 if __name__ == '__main__': |
311 sys.exit(Main(sys.argv)) | 311 sys.exit(Main(sys.argv)) |
OLD | NEW |