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

Side by Side Diff: tools/create_sdk.py

Issue 10912123: Revert "Move dart:web to pkg:htmlescape." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/vm/unit_test.cc ('k') | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 # ........(implementation files) 48 # ........(implementation files)
49 # ......json/ 49 # ......json/
50 # ........json_frog.dart 50 # ........json_frog.dart
51 #.........json.dart 51 #.........json.dart
52 # ........{frog}/ 52 # ........{frog}/
53 # ......mirrors/ 53 # ......mirrors/
54 # ........mirrors.dart 54 # ........mirrors.dart
55 # ......uri/ 55 # ......uri/
56 # ........uri.dart 56 # ........uri.dart
57 # ......utf/ 57 # ......utf/
58 # ......web/
59 # ........web.dart
58 # ....pkg/ 60 # ....pkg/
59 # ......args/ 61 # ......args/
60 # ......dartdoc/ 62 # ......dartdoc/
61 #.......htmlescape/
62 # ......intl/ 63 # ......intl/
63 # ......logging/ 64 # ......logging/
64 # ......(more will come here) 65 # ......(more will come here)
65 # ....util/ 66 # ....util/
66 # ......analyzer/ 67 # ......analyzer/
67 # ........dart_analyzer.jar 68 # ........dart_analyzer.jar
68 # ........(third-party libraries for dart_analyzer) 69 # ........(third-party libraries for dart_analyzer)
69 # ......pub/ 70 # ......pub/
70 # ......(more will come here) 71 # ......(more will come here)
71 72
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 dom_dest_dir = join(LIB, 'dom') 293 dom_dest_dir = join(LIB, 'dom')
293 os.makedirs(dom_dest_dir) 294 os.makedirs(dom_dest_dir)
294 295
295 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'), 296 copyfile(join(dom_src_dir, 'dart2js', 'dom_dart2js.dart'),
296 join(dom_dest_dir, 'dom_dart2js.dart')) 297 join(dom_dest_dir, 'dom_dart2js.dart'))
297 298
298 # 299 #
299 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. 300 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}.
300 # 301 #
301 302
302 # TODO: Take this data from lib/_internal/libraries.dart!
303 for library in ['_internal', 'core', 'coreimpl', 'crypto', 'isolate', 'json', 303 for library in ['_internal', 'core', 'coreimpl', 'crypto', 'isolate', 'json',
304 'math', 'mirrors', 'uri', 'utf']: 304 'math', 'mirrors', 'uri', 'utf', 'web']:
305 src_dir = join(HOME, 'lib', library) 305 src_dir = join(HOME, 'lib', library)
306 dest_dir = join(LIB, library) 306 dest_dir = join(LIB, library)
307 os.makedirs(dest_dir) 307 os.makedirs(dest_dir)
308 308
309 for filename in os.listdir(src_dir): 309 for filename in os.listdir(src_dir):
310 if filename.endswith('.dart'): 310 if filename.endswith('.dart'):
311 copyfile(join(src_dir, filename), join(dest_dir, filename)) 311 copyfile(join(src_dir, filename), join(dest_dir, filename))
312 312
313 # Create and copy pkg. 313 # Create and copy pkg.
314 PKG = join(SDK_tmp, 'pkg') 314 PKG = join(SDK_tmp, 'pkg')
315 os.makedirs(PKG) 315 os.makedirs(PKG)
316 316
317 # 317 #
318 # Create and populate pkg/{args, intl, logging, unittest} 318 # Create and populate pkg/{args, intl, logging, unittest}
319 # 319 #
320 320
321 for library in ['args', 'htmlescape', 'intl', 'logging', 'unittest']: 321 for library in ['args', 'intl', 'logging', 'unittest']:
322 src_dir = join(HOME, 'pkg', library) 322 src_dir = join(HOME, 'pkg', library)
323 dest_dir = join(PKG, library) 323 dest_dir = join(PKG, library)
324 os.makedirs(dest_dir) 324 os.makedirs(dest_dir)
325 325
326 for filename in os.listdir(src_dir): 326 for filename in os.listdir(src_dir):
327 if filename.endswith('.dart'): 327 if filename.endswith('.dart'):
328 copyfile(join(src_dir, filename), join(dest_dir, filename)) 328 copyfile(join(src_dir, filename), join(dest_dir, filename))
329 if exists(join(src_dir, 'lib')): 329 if exists(join(src_dir, 'lib')):
330 copytree(join(src_dir, 'lib'), join(dest_dir, 'lib'), 330 copytree(join(src_dir, 'lib'), join(dest_dir, 'lib'),
331 ignore=ignore_patterns('.svn')) 331 ignore=ignore_patterns('.svn'))
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 if revision is not None: 392 if revision is not None:
393 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 393 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
394 f.write(revision + '\n') 394 f.write(revision + '\n')
395 f.close() 395 f.close()
396 396
397 move(SDK_tmp, SDK) 397 move(SDK_tmp, SDK)
398 utils.Touch(os.path.join(SDK, 'create.stamp')) 398 utils.Touch(os.path.join(SDK, 'create.stamp'))
399 399
400 if __name__ == '__main__': 400 if __name__ == '__main__':
401 sys.exit(Main(sys.argv)) 401 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « runtime/vm/unit_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698