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

Side by Side Diff: tools/create_sdk.py

Issue 12667015: Fix dart-editor build breaks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 ]) 271 ])
272 272
273 version = utils.GetVersion() 273 version = utils.GetVersion()
274 274
275 # Copy dart2js/dartdoc/pub. 275 # Copy dart2js/dartdoc/pub.
276 CopyDartScripts(HOME, build_dir, SDK_tmp, version) 276 CopyDartScripts(HOME, build_dir, SDK_tmp, version)
277 277
278 # Fix up dartdoc. 278 # Fix up dartdoc.
279 # TODO(dgrove): Remove this once issue 6619 is fixed. 279 # TODO(dgrove): Remove this once issue 6619 is fixed.
280 ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc', 280 ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc',
281 'bin', 'dartdoc.dart')], [ 281 'bin', 'dartdoc.dart'),
282 join(SDK_tmp, 'lib', '_internal', 'dartdoc',
283 'lib', 'universe_serializer.dart')], [
282 ("../../../../../pkg/args/lib/args.dart", 284 ("../../../../../pkg/args/lib/args.dart",
283 "../../../../pkg/args/lib/args.dart"), 285 "../../../../pkg/args/lib/args.dart"),
284 ("../../../../../pkg/pathos/lib/path.dart", 286 ("../../../../../pkg/pathos/lib/path.dart",
285 "../../../../pkg/pathos/lib/path.dart"), 287 "../../../../pkg/pathos/lib/path.dart"),
286 ]) 288 ])
287 289
288 # Write the 'version' file 290 # Write the 'version' file
289 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w') 291 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w')
290 versionFile.write(version + '\n') 292 versionFile.write(version + '\n')
291 versionFile.close() 293 versionFile.close()
292 294
293 # Write the 'revision' file 295 # Write the 'revision' file
294 revision = utils.GetSVNRevision() 296 revision = utils.GetSVNRevision()
295 297
296 if revision is not None: 298 if revision is not None:
297 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 299 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
298 f.write(revision + '\n') 300 f.write(revision + '\n')
299 f.close() 301 f.close()
300 302
301 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 303 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
302 304
303 move(SDK_tmp, SDK) 305 move(SDK_tmp, SDK)
304 306
305 if __name__ == '__main__': 307 if __name__ == '__main__':
306 sys.exit(Main(sys.argv)) 308 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