Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: tools/create_sdk.py

Issue 10568009: Add web library to create_sdk.py, so it will be copied to the SDK too. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 # ......crypto/ 47 # ......crypto/
48 # ........crypto.dart 48 # ........crypto.dart
49 # ........(implementation files) 49 # ........(implementation files)
50 # ......json/ 50 # ......json/
51 # ........json_frog.dart 51 # ........json_frog.dart
52 #.........json.dart 52 #.........json.dart
53 # ........{frog}/ 53 # ........{frog}/
54 # ......uri/ 54 # ......uri/
55 # ........uri.dart 55 # ........uri.dart
56 # ......utf/ 56 # ......utf/
57 # ......web/
58 # ........web.dart
57 # ......(more will come here) 59 # ......(more will come here)
58 # ....util/ 60 # ....util/
59 # ......analyzer/ 61 # ......analyzer/
60 # ........dart_analyzer.jar 62 # ........dart_analyzer.jar
61 # ........(third-party libraries for dart_analyzer) 63 # ........(third-party libraries for dart_analyzer)
62 # ......pub/ 64 # ......pub/
63 # ......(more will come here) 65 # ......(more will come here)
64 66
65 67
66 68
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 # Create and populate lib/dom. 315 # Create and populate lib/dom.
314 # 316 #
315 dom_src_dir = join(HOME, 'lib', 'dom') 317 dom_src_dir = join(HOME, 'lib', 'dom')
316 dom_dest_dir = join(LIB, 'dom') 318 dom_dest_dir = join(LIB, 'dom')
317 os.makedirs(dom_dest_dir) 319 os.makedirs(dom_dest_dir)
318 320
319 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'), 321 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'),
320 join(dom_dest_dir, 'dom_frog.dart')) 322 join(dom_dest_dir, 'dom_frog.dart'))
321 323
322 # 324 #
323 # Create and populate lib/{crypto, json, uri, utf}. 325 # Create and populate lib/{crypto, json, uri, utf, ...}.
324 # 326 #
325 327
326 for library in ['crypto', 'json', 'unittest', 'uri', 'utf', 'i18n']: 328 for library in ['crypto', 'json', 'unittest', 'uri', 'utf', 'i18n', 'web']:
327 src_dir = join(HOME, 'lib', library) 329 src_dir = join(HOME, 'lib', library)
328 dest_dir = join(LIB, library) 330 dest_dir = join(LIB, library)
329 os.makedirs(dest_dir) 331 os.makedirs(dest_dir)
330 332
331 for filename in os.listdir(src_dir): 333 for filename in os.listdir(src_dir):
332 if filename.endswith('.dart'): 334 if filename.endswith('.dart'):
333 copyfile(join(src_dir, filename), join(dest_dir, filename)) 335 copyfile(join(src_dir, filename), join(dest_dir, filename))
334 336
335 # Create and populate lib/dartdoc. 337 # Create and populate lib/dartdoc.
336 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc') 338 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc')
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 if revision is not None: 470 if revision is not None:
469 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 471 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
470 f.write(revision + '\n') 472 f.write(revision + '\n')
471 f.close() 473 f.close()
472 474
473 move(SDK_tmp, SDK) 475 move(SDK_tmp, SDK)
474 utils.Touch(os.path.join(SDK, 'create.stamp')) 476 utils.Touch(os.path.join(SDK, 'create.stamp'))
475 477
476 if __name__ == '__main__': 478 if __name__ == '__main__':
477 sys.exit(Main(sys.argv)) 479 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698