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

Side by Side Diff: tools/create_sdk.py

Issue 10332109: Make the crypto library an official dart:crypto library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix long line Created 8 years, 7 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 | « tests/lib/crypto/sha256_test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | 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) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, 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 24 matching lines...) Expand all
35 # ......dartdoc/ 35 # ......dartdoc/
36 # ......isolate/ 36 # ......isolate/
37 # ........isolate_{frog, runtime}.dart 37 # ........isolate_{frog, runtime}.dart
38 # ........{frog, runtime}/ 38 # ........{frog, runtime}/
39 # ......dom/ 39 # ......dom/
40 # ........dom.dart 40 # ........dom.dart
41 # ......frog/ 41 # ......frog/
42 # ......html/ 42 # ......html/
43 # ........html_frog.dart 43 # ........html_frog.dart
44 # ........html_dartium.dart 44 # ........html_dartium.dart
45 # ......crypto/
46 # ........crypto.dart
47 # ........(implementation files)
45 # ......json/ 48 # ......json/
46 # ........json_frog.dart 49 # ........json_frog.dart
47 #.........json.dart 50 #.........json.dart
48 # ........{frog}/ 51 # ........{frog}/
49 # ......uri/ 52 # ......uri/
50 # ........uri.dart 53 # ........uri.dart
51 # ......utf/ 54 # ......utf/
52 # ......(more will come here) 55 # ......(more will come here)
53 # ....util/ 56 # ....util/
54 # ......pub/ 57 # ......pub/
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 # Create and populate lib/dom. 346 # Create and populate lib/dom.
344 # 347 #
345 dom_src_dir = join(HOME, 'lib', 'dom') 348 dom_src_dir = join(HOME, 'lib', 'dom')
346 dom_dest_dir = join(LIB, 'dom') 349 dom_dest_dir = join(LIB, 'dom')
347 os.makedirs(dom_dest_dir) 350 os.makedirs(dom_dest_dir)
348 351
349 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'), 352 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'),
350 join(dom_dest_dir, 'dom_frog.dart')) 353 join(dom_dest_dir, 'dom_frog.dart'))
351 354
352 # 355 #
353 # Create and populate lib/{json, uri, utf} . 356 # Create and populate lib/{crypto, json, uri, utf}.
354 # 357 #
355 358
356 for library in ['json', 'uri', 'utf']: 359 for library in ['crypto', 'json', 'uri', 'utf']:
357 src_dir = join(HOME, 'lib', library) 360 src_dir = join(HOME, 'lib', library)
358 dest_dir = join(LIB, library) 361 dest_dir = join(LIB, library)
359 os.makedirs(dest_dir) 362 os.makedirs(dest_dir)
360 363
361 for filename in os.listdir(src_dir): 364 for filename in os.listdir(src_dir):
362 if filename.endswith('.dart'): 365 if filename.endswith('.dart'):
363 copyfile(join(src_dir, filename), join(dest_dir, filename)) 366 copyfile(join(src_dir, filename), join(dest_dir, filename))
364 367
365 # Create and populate lib/dartdoc 368 # Create and populate lib/dartdoc
366 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc') 369 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc')
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 if revision is not None: 514 if revision is not None:
512 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 515 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
513 f.write(revision + '\n') 516 f.write(revision + '\n')
514 f.close() 517 f.close()
515 518
516 move(SDK_tmp, SDK) 519 move(SDK_tmp, SDK)
517 utils.Touch(os.path.join(SDK, 'create.stamp')) 520 utils.Touch(os.path.join(SDK, 'create.stamp'))
518 521
519 if __name__ == '__main__': 522 if __name__ == '__main__':
520 sys.exit(Main(sys.argv)) 523 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « tests/lib/crypto/sha256_test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698