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

Side by Side Diff: tools/create_sdk.py

Issue 10916070: Continue quest for greenness. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « lib/_internal/libraries.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 for library in ['_internal', 'compiler', 'config', 'html', 'core', 'coreimpl', 223 for library in ['_internal', 'compiler', 'config', 'html', 'core', 'coreimpl',
224 'crypto', 'isolate', 'json', 'math', 'mirrors', 'uri', 'utf', 224 'crypto', 'isolate', 'json', 'math', 'mirrors', 'uri', 'utf',
225 'web']: 225 'web']:
226 copytree(join(HOME, 'lib', library), join(LIB, library), 226 copytree(join(HOME, 'lib', library), join(LIB, library),
227 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 227 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
228 228
229 # TODO(dgrove): fix this really ugly hack 229 # TODO(dgrove): fix this really ugly hack
230 ReplaceInFiles( 230 ReplaceInFiles(
231 [join(LIB, 'compiler', 'implementation', 'lib', 'io.dart')], 231 [join(LIB, 'compiler', 'implementation', 'lib', 'io.dart')],
232 [('../../../runtime/bin', '../io/runtime')]) 232 [('../../runtime/bin', '../io/runtime')])
233 233
234 # Create and copy pkg. 234 # Create and copy pkg.
235 PKG = join(SDK_tmp, 'pkg') 235 PKG = join(SDK_tmp, 'pkg')
236 os.makedirs(PKG) 236 os.makedirs(PKG)
237 237
238 # 238 #
239 # Create and populate pkg/{args, intl, logging, unittest} 239 # Create and populate pkg/{args, intl, logging, unittest}
240 # 240 #
241 241
242 for library in ['args', 'dartdoc', 'intl', 'logging', 'unittest']: 242 for library in ['args', 'dartdoc', 'intl', 'logging', 'unittest']:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 if revision is not None: 290 if revision is not None:
291 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 291 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
292 f.write(revision + '\n') 292 f.write(revision + '\n')
293 f.close() 293 f.close()
294 294
295 move(SDK_tmp, SDK) 295 move(SDK_tmp, SDK)
296 utils.Touch(os.path.join(SDK, 'create.stamp')) 296 utils.Touch(os.path.join(SDK, 'create.stamp'))
297 297
298 if __name__ == '__main__': 298 if __name__ == '__main__':
299 sys.exit(Main(sys.argv)) 299 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « lib/_internal/libraries.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698