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

Side by Side Diff: tools/create_sdk.py

Issue 11419300: Dartifying dart:html type names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
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'), 205 join('html', 'dart2js'), join('html', 'dartium'),
206 join('html', 'html_common'), 'json', 'math', 'mirrors', 206 join('html', 'html_common'), join('indexed_db', 'dart2js'),
207 join('indexed_db', 'dartium'), 'json', 'math', 'mirrors',
207 'scalarlist', join('svg', 'dart2js'), join('svg', 'dartium'), 208 'scalarlist', join('svg', 'dart2js'), join('svg', 'dartium'),
208 'uri', 'utf', join('web_audio', 'dart2js'), 209 'uri', 'utf', join('web_audio', 'dart2js'),
209 join('web_audio', 'dartium')]: 210 join('web_audio', 'dartium')]:
210 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 211 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
211 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 212 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
212 213
213 214
214 # Create and copy pkg. 215 # Create and copy pkg.
215 PKG = join(SDK_tmp, 'pkg') 216 PKG = join(SDK_tmp, 'pkg')
216 os.makedirs(PKG) 217 os.makedirs(PKG)
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 308 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
308 f.write(revision + '\n') 309 f.write(revision + '\n')
309 f.close() 310 f.close()
310 311
311 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 312 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
312 313
313 move(SDK_tmp, SDK) 314 move(SDK_tmp, SDK)
314 315
315 if __name__ == '__main__': 316 if __name__ == '__main__':
316 sys.exit(Main(sys.argv)) 317 sys.exit(Main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698