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 19 matching lines...) Expand all Loading... |
30 # ......io/ | 30 # ......io/ |
31 # ......isolate/ | 31 # ......isolate/ |
32 # ......json/ | 32 # ......json/ |
33 # ......math/ | 33 # ......math/ |
34 # ......mirrors/ | 34 # ......mirrors/ |
35 # ......uri/ | 35 # ......uri/ |
36 # ......utf/ | 36 # ......utf/ |
37 # ......scalarlist/ | 37 # ......scalarlist/ |
38 # ....pkg/ | 38 # ....pkg/ |
39 # ......args/ | 39 # ......args/ |
40 #.......htmlescape/ | |
41 # ......intl/ | 40 # ......intl/ |
42 # ......logging/ | 41 # ......logging/ |
43 # ......meta/ | 42 # ......meta/ |
44 # ......unittest/ | 43 # ......unittest/ |
45 # ......(more will come here) | 44 # ......(more will come here) |
46 # ....util/ | 45 # ....util/ |
47 # ......analyzer/ | 46 # ......analyzer/ |
48 # ........dart_analyzer.jar | 47 # ........dart_analyzer.jar |
49 # ........(third-party libraries for dart_analyzer) | 48 # ........(third-party libraries for dart_analyzer) |
50 # ......pub/ | 49 # ......pub/ |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 211 |
213 | 212 |
214 # Create and copy pkg. | 213 # Create and copy pkg. |
215 PKG = join(SDK_tmp, 'pkg') | 214 PKG = join(SDK_tmp, 'pkg') |
216 os.makedirs(PKG) | 215 os.makedirs(PKG) |
217 | 216 |
218 # | 217 # |
219 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} | 218 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} |
220 # | 219 # |
221 | 220 |
222 for library in ['args', 'htmlescape', 'http', 'intl', 'logging', | 221 for library in ['args', 'http', 'intl', 'logging', |
223 'meta', 'oauth2', 'unittest']: | 222 'meta', 'oauth2', 'unittest']: |
224 copytree(join(HOME, 'pkg', library), join(PKG, library), | 223 copytree(join(HOME, 'pkg', library), join(PKG, library), |
225 ignore=ignore_patterns('*.svn', 'doc', 'docs', | 224 ignore=ignore_patterns('*.svn', 'doc', 'docs', |
226 '*.py', '*.gypi', '*.sh')) | 225 '*.py', '*.gypi', '*.sh')) |
227 | 226 |
228 # Create and copy tools. | 227 # Create and copy tools. |
229 UTIL = join(SDK_tmp, 'util') | 228 UTIL = join(SDK_tmp, 'util') |
230 os.makedirs(UTIL) | 229 os.makedirs(UTIL) |
231 | 230 |
232 if ShouldCopyAnalyzer(): | 231 if ShouldCopyAnalyzer(): |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 306 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
308 f.write(revision + '\n') | 307 f.write(revision + '\n') |
309 f.close() | 308 f.close() |
310 | 309 |
311 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 310 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
312 | 311 |
313 move(SDK_tmp, SDK) | 312 move(SDK_tmp, SDK) |
314 | 313 |
315 if __name__ == '__main__': | 314 if __name__ == '__main__': |
316 sys.exit(Main(sys.argv)) | 315 sys.exit(Main(sys.argv)) |
OLD | NEW |