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

Side by Side Diff: tools/create_sdk.py

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes Created 5 years, 6 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
« no previous file with comments | « sdk/lib/_internal/pub/test/version_solver_test.dart ('k') | tools/make_links.py » ('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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 # Copy lib/_internal/libraries.dart. 222 # Copy lib/_internal/libraries.dart.
223 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), 223 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'),
224 join(LIB, '_internal', 'libraries.dart')) 224 join(LIB, '_internal', 'libraries.dart'))
225 225
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, 'third_party', 'pkg_tested', 'pub', 'lib', 'src',
233 'asset'),
233 join(RESOURCE), 234 join(RESOURCE),
234 ignore=ignore_patterns('.svn')) 235 ignore=ignore_patterns('.svn'))
235 236
236 # Copy in 7zip for Windows. 237 # Copy in 7zip for Windows.
237 if HOST_OS == 'win32': 238 if HOST_OS == 'win32':
238 copytree(join(HOME, 'third_party', '7zip'), 239 copytree(join(HOME, 'third_party', '7zip'),
239 join(RESOURCE, '7zip'), 240 join(RESOURCE, '7zip'),
240 ignore=ignore_patterns('.svn')) 241 ignore=ignore_patterns('.svn'))
241 242
242 # Copy dart2js/pub. 243 # Copy dart2js/pub.
(...skipping 14 matching lines...) Expand all
257 f.write('%s\n' % revision) 258 f.write('%s\n' % revision)
258 f.close() 259 f.close()
259 260
260 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 261 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
261 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) 262 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
262 263
263 move(SDK_tmp, SDK) 264 move(SDK_tmp, SDK)
264 265
265 if __name__ == '__main__': 266 if __name__ == '__main__':
266 sys.exit(Main()) 267 sys.exit(Main())
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/version_solver_test.dart ('k') | tools/make_links.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698