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

Side by Side Diff: tools/create_sdk.py

Issue 9462001: Unify most of our utf8 implementations. This takes the implementation (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « runtime/bin/utf_sources.gypi ('k') | utils/string_encoding/unicode.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 26 matching lines...) Expand all
37 # ......frog/ 37 # ......frog/
38 # ......html/ 38 # ......html/
39 # ........html_frog.dart 39 # ........html_frog.dart
40 # ........html_dartium.dart 40 # ........html_dartium.dart
41 # ......json/ 41 # ......json/
42 # ........json_frog.dart 42 # ........json_frog.dart
43 #.........json.dart 43 #.........json.dart
44 # ........{frog}/ 44 # ........{frog}/
45 # ......uri/ 45 # ......uri/
46 # ........uri.dart 46 # ........uri.dart
47 # ......utf8/ 47 # ......utf/
48 # ........utf8.dart
49 # ......(more will come here) 48 # ......(more will come here)
50 # ....util/ 49 # ....util/
51 # ......(more will come here) 50 # ......(more will come here)
52 51
53 52
54 53
55 import os 54 import os
56 import re 55 import re
57 import sys 56 import sys
58 import tempfile 57 import tempfile
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 # Create and populate lib/dom. 249 # Create and populate lib/dom.
251 # 250 #
252 dom_src_dir = join(HOME, 'client', 'dom') 251 dom_src_dir = join(HOME, 'client', 'dom')
253 dom_dest_dir = join(LIB, 'dom') 252 dom_dest_dir = join(LIB, 'dom')
254 os.makedirs(dom_dest_dir) 253 os.makedirs(dom_dest_dir)
255 254
256 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'), 255 copyfile(join(dom_src_dir, 'frog', 'dom_frog.dart'),
257 join(dom_dest_dir, 'dom_frog.dart')) 256 join(dom_dest_dir, 'dom_frog.dart'))
258 257
259 # 258 #
260 # Create and populate lib/{json, uri, utf8} . 259 # Create and populate lib/{json, uri, utf} .
261 # 260 #
262 261
263 for library in ['json', 'uri', 'utf8']: 262 for library in ['json', 'uri', 'utf']:
264 src_dir = join(HOME, 'lib', library) 263 src_dir = join(HOME, 'lib', library)
265 dest_dir = join(LIB, library) 264 dest_dir = join(LIB, library)
266 os.makedirs(dest_dir) 265 os.makedirs(dest_dir)
267 266
268 for filename in os.listdir(src_dir): 267 for filename in os.listdir(src_dir):
269 if filename.endswith('.dart'): 268 if filename.endswith('.dart'):
270 copyfile(join(src_dir, filename), join(dest_dir, filename)) 269 copyfile(join(src_dir, filename), join(dest_dir, filename))
271 270
272 # Create and populate lib/dartdoc 271 # Create and populate lib/dartdoc
273 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc') 272 dartdoc_src_dir = join(HOME, 'lib', 'dartdoc')
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 385
387 # Create and copy tools. 386 # Create and copy tools.
388 387
389 UTIL = join(SDK_tmp, 'util') 388 UTIL = join(SDK_tmp, 'util')
390 os.makedirs(UTIL) 389 os.makedirs(UTIL)
391 390
392 move(SDK_tmp, SDK) 391 move(SDK_tmp, SDK)
393 392
394 if __name__ == '__main__': 393 if __name__ == '__main__':
395 sys.exit(Main(sys.argv)) 394 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « runtime/bin/utf_sources.gypi ('k') | utils/string_encoding/unicode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698