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

Side by Side Diff: tools/create_sdk.py

Issue 11000031: Copy README.dart-sdk to dart-sdk/README . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « dart.gyp ('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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 # Copy dart2js. 320 # Copy dart2js.
321 CopyDart2Js(build_dir, SDK_tmp, revision) 321 CopyDart2Js(build_dir, SDK_tmp, revision)
322 322
323 # Write the 'revision' file 323 # Write the 'revision' file
324 if revision is not None: 324 if revision is not None:
325 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 325 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
326 f.write(revision + '\n') 326 f.write(revision + '\n')
327 f.close() 327 f.close()
328 328
329 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
Siggi Cherem (dart-lang) 2012/09/27 17:58:00 will this update the time-stamp even if README.dar
330
329 move(SDK_tmp, SDK) 331 move(SDK_tmp, SDK)
330 utils.Touch(os.path.join(SDK, 'create.stamp'))
331 332
332 if __name__ == '__main__': 333 if __name__ == '__main__':
333 sys.exit(Main(sys.argv)) 334 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « dart.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698