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

Side by Side Diff: tools/create_sdk.py

Issue 1134583005: Remove the core library stubbing infrastructure. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | « pkg/stub_core_library/test/stub_test.dart ('k') | utils/pub/pub.gyp » ('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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 # Create and copy tools. 226 # Create and copy tools.
227 UTIL = join(SDK_tmp, 'util') 227 UTIL = join(SDK_tmp, 'util')
228 os.makedirs(UTIL) 228 os.makedirs(UTIL)
229 229
230 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset') 230 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'asset')
231 os.makedirs(os.path.dirname(RESOURCE)) 231 os.makedirs(os.path.dirname(RESOURCE))
232 copytree(join(HOME, 'sdk', 'lib', '_internal', 'pub', 'asset'), 232 copytree(join(HOME, 'sdk', 'lib', '_internal', 'pub', 'asset'),
233 join(RESOURCE), 233 join(RESOURCE),
234 ignore=ignore_patterns('.svn')) 234 ignore=ignore_patterns('.svn'))
235 235
236 copytree(join(SNAPSHOT, 'core_stubs'),
237 join(RESOURCE, 'dart', 'core_stubs'))
238
239 # Copy in 7zip for Windows. 236 # Copy in 7zip for Windows.
240 if HOST_OS == 'win32': 237 if HOST_OS == 'win32':
241 copytree(join(HOME, 'third_party', '7zip'), 238 copytree(join(HOME, 'third_party', '7zip'),
242 join(RESOURCE, '7zip'), 239 join(RESOURCE, '7zip'),
243 ignore=ignore_patterns('.svn')) 240 ignore=ignore_patterns('.svn'))
244 241
245 # Copy dart2js/pub. 242 # Copy dart2js/pub.
246 CopyDartScripts(HOME, SDK_tmp) 243 CopyDartScripts(HOME, SDK_tmp)
247 CopySnapshots(SNAPSHOT, SDK_tmp) 244 CopySnapshots(SNAPSHOT, SDK_tmp)
248 245
(...skipping 11 matching lines...) Expand all
260 f.write(revision + '\n') 257 f.write(revision + '\n')
261 f.close() 258 f.close()
262 259
263 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 260 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
264 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) 261 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
265 262
266 move(SDK_tmp, SDK) 263 move(SDK_tmp, SDK)
267 264
268 if __name__ == '__main__': 265 if __name__ == '__main__':
269 sys.exit(Main()) 266 sys.exit(Main())
OLDNEW
« no previous file with comments | « pkg/stub_core_library/test/stub_test.dart ('k') | utils/pub/pub.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698