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

Side by Side Diff: tools/create_sdk.py

Issue 11316264: Snapshotting changes for dart:html_common (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Sync to latest. Created 8 years 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 | « sdk/lib/svg/dartium/svg_dartium.dart ('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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 LIB = join(SDK_tmp, 'lib') 196 LIB = join(SDK_tmp, 'lib')
197 os.makedirs(LIB) 197 os.makedirs(LIB)
198 198
199 # 199 #
200 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}. 200 # Create and populate lib/{core, crypto, isolate, json, uri, utf, ...}.
201 # 201 #
202 202
203 os.makedirs(join(LIB, 'html')) 203 os.makedirs(join(LIB, 'html'))
204 for library in ['_internal', 'collection', 'core', 'crypto', 'io', 'isolate', 204 for library in ['_internal', 'collection', 'core', 'crypto', 'io', 'isolate',
205 join('html', 'dart2js'), join('html', 'dartium'), 'json', 205 join('html', 'dart2js'), join('html', 'dartium'),
206 'math', 'mirrors', 'scalarlist', join('svg', 'dart2js'), 206 join('html', 'html_common'), 'json', 'math', 'mirrors',
207 join('svg', 'dartium'), 'uri', 'utf', 207 'scalarlist', join('svg', 'dart2js'), join('svg', 'dartium'),
208 join('web_audio', 'dart2js'), join('web_audio', 'dartium')]: 208 'uri', 'utf', join('web_audio', 'dart2js'),
209 join('web_audio', 'dartium')]:
209 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 210 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
210 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 211 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
211 212
212 213
213 # Create and copy pkg. 214 # Create and copy pkg.
214 PKG = join(SDK_tmp, 'pkg') 215 PKG = join(SDK_tmp, 'pkg')
215 os.makedirs(PKG) 216 os.makedirs(PKG)
216 217
217 # 218 #
218 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} 219 # Create and populate pkg/{args, intl, logging, meta, unittest, ...}
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
307 f.write(revision + '\n') 308 f.write(revision + '\n')
308 f.close() 309 f.close()
309 310
310 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 311 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
311 312
312 move(SDK_tmp, SDK) 313 move(SDK_tmp, SDK)
313 314
314 if __name__ == '__main__': 315 if __name__ == '__main__':
315 sys.exit(Main(sys.argv)) 316 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698