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

Side by Side Diff: tools/create_sdk.py

Issue 23654055: Move dart:chrome to dart:_chrome. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 LIB = join(SDK_tmp, 'lib') 188 LIB = join(SDK_tmp, 'lib')
189 os.makedirs(LIB) 189 os.makedirs(LIB)
190 190
191 # 191 #
192 # Create and populate lib/{core, crypto, isolate, json, utf, ...}. 192 # Create and populate lib/{core, crypto, isolate, json, utf, ...}.
193 # 193 #
194 194
195 os.makedirs(join(LIB, 'html')) 195 os.makedirs(join(LIB, 'html'))
196 196
197 for library in [join('_internal', 'compiler'), 197 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'),
198 join('_internal', 'compiler'),
198 join('_internal', 'dartdoc'), 199 join('_internal', 'dartdoc'),
199 join('_internal', 'pub', 'resource'), 200 join('_internal', 'pub', 'resource'),
200 join('_internal', 'lib'), 201 join('_internal', 'lib'),
201 'async', 'collection', '_collection_dev', 'convert', 202 'async', 'collection', '_collection_dev', 'convert',
202 'core', 'crypto', 'io', 'isolate', 203 'core', 'crypto', 'io', 'isolate',
203 join('chrome', 'dart2js'), join('chrome', 'dartium'),
204 join('html', 'dart2js'), join('html', 'dartium'), 204 join('html', 'dart2js'), join('html', 'dartium'),
205 join('html', 'html_common'), 205 join('html', 'html_common'),
206 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), 206 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
207 'js', 'json', 'math', 'mirrors', 'typed_data', 207 'js', 'json', 'math', 'mirrors', 'typed_data',
208 join('svg', 'dart2js'), join('svg', 'dartium'), 208 join('svg', 'dart2js'), join('svg', 'dartium'),
209 'utf', 209 'utf',
210 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), 210 join('web_audio', 'dart2js'), join('web_audio', 'dartium'),
211 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 211 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
212 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: 212 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]:
213 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 213 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 255 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
256 f.write(revision + '\n') 256 f.write(revision + '\n')
257 f.close() 257 f.close()
258 258
259 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 259 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
260 260
261 move(SDK_tmp, SDK) 261 move(SDK_tmp, SDK)
262 262
263 if __name__ == '__main__': 263 if __name__ == '__main__':
264 sys.exit(Main(sys.argv)) 264 sys.exit(Main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698