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

Side by Side Diff: tools/create_sdk.py

Issue 10913131: Fix typo in create_sdk.py. (Closed) Base URL: https://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 | « no previous file | 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 [('../../runtime/bin', '../io/runtime')]) 230 [('../../runtime/bin', '../io/runtime')])
231 231
232 # Create and copy pkg. 232 # Create and copy pkg.
233 PKG = join(SDK_tmp, 'pkg') 233 PKG = join(SDK_tmp, 'pkg')
234 os.makedirs(PKG) 234 os.makedirs(PKG)
235 235
236 # 236 #
237 # Create and populate pkg/{args, intl, logging, unittest} 237 # Create and populate pkg/{args, intl, logging, unittest}
238 # 238 #
239 239
240 for library in ['args', 'htmlescape', dartdoc', 'intl', 'logging', 'unittest'] : 240 for library in ['args', 'htmlescape', 'dartdoc', 'intl', 'logging',
241 'unittest']:
241 copytree(join(HOME, 'pkg', library), join(PKG, library), 242 copytree(join(HOME, 'pkg', library), join(PKG, library),
242 ignore=ignore_patterns('*.svn', 'doc', 'docs', 243 ignore=ignore_patterns('*.svn', 'doc', 'docs',
243 '*.py', '*.gypi', '*.sh')) 244 '*.py', '*.gypi', '*.sh'))
244 245
245 # Fixup dartdoc 246 # Fixup dartdoc
246 ReplaceInFiles([ 247 ReplaceInFiles([
247 join(PKG, 'dartdoc', 'dartdoc.dart'), 248 join(PKG, 'dartdoc', 'dartdoc.dart'),
248 ], [ 249 ], [
249 ("final bool IN_SDK = false;", 250 ("final bool IN_SDK = false;",
250 "final bool IN_SDK = true;"), 251 "final bool IN_SDK = true;"),
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 if revision is not None: 289 if revision is not None:
289 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 290 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
290 f.write(revision + '\n') 291 f.write(revision + '\n')
291 f.close() 292 f.close()
292 293
293 move(SDK_tmp, SDK) 294 move(SDK_tmp, SDK)
294 utils.Touch(os.path.join(SDK, 'create.stamp')) 295 utils.Touch(os.path.join(SDK, 'create.stamp'))
295 296
296 if __name__ == '__main__': 297 if __name__ == '__main__':
297 sys.exit(Main(sys.argv)) 298 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698