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

Side by Side Diff: tools/create_sdk.py

Issue 11398002: Splitting SVG types out of dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minifying. Created 8 years, 1 month 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/html/svgelement_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) 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 LIB = join(SDK_tmp, 'lib') 200 LIB = join(SDK_tmp, 'lib')
201 os.makedirs(LIB) 201 os.makedirs(LIB)
202 202
203 # 203 #
204 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. 204 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}.
205 # 205 #
206 206
207 os.makedirs(join(LIB, 'html')) 207 os.makedirs(join(LIB, 'html'))
208 for library in ['_internal', 'collection', 'core', 'coreimpl', 'crypto', 'io', 208 for library in ['_internal', 'collection', 'core', 'coreimpl', 'crypto', 'io',
209 'isolate', join('html', 'dart2js'), join('html', 'dartium'), 209 'isolate', join('html', 'dart2js'), join('html', 'dartium'),
210 'json', 'math', 'mirrors', 'scalarlist', 'uri', 'utf']: 210 'json', 'math', 'mirrors', 'scalarlist',
211 join('svg', 'dart2js'), join('svg', 'dartium'), 'uri', 'utf']:
211 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 212 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
212 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 213 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
213 214
214 215
215 # Create and copy pkg. 216 # Create and copy pkg.
216 PKG = join(SDK_tmp, 'pkg') 217 PKG = join(SDK_tmp, 'pkg')
217 os.makedirs(PKG) 218 os.makedirs(PKG)
218 219
219 # 220 #
220 # Create and populate pkg/{args, intl, logging, meta, unittest} 221 # Create and populate pkg/{args, intl, logging, meta, unittest}
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 304 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
304 f.write(revision + '\n') 305 f.write(revision + '\n')
305 f.close() 306 f.close()
306 307
307 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 308 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
308 309
309 move(SDK_tmp, SDK) 310 move(SDK_tmp, SDK)
310 311
311 if __name__ == '__main__': 312 if __name__ == '__main__':
312 sys.exit(Main(sys.argv)) 313 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « tests/html/svgelement_test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698