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

Side by Side Diff: tools/create_sdk.py

Issue 1085103002: add the api_readme file to the sdk build (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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 27 matching lines...) Expand all
38 # ......convert/ 38 # ......convert/
39 # ......core/ 39 # ......core/
40 # ......html/ 40 # ......html/
41 # ......internal/ 41 # ......internal/
42 # ......io/ 42 # ......io/
43 # ......isolate/ 43 # ......isolate/
44 # ......js/ 44 # ......js/
45 # ......math/ 45 # ......math/
46 # ......mirrors/ 46 # ......mirrors/
47 # ......typed_data/ 47 # ......typed_data/
48 # ......api_readme.md
48 # ....util/ 49 # ....util/
49 # ......(more will come here) 50 # ......(more will come here)
50 51
51 52
52 import optparse 53 import optparse
53 import os 54 import os
54 import re 55 import re
55 import sys 56 import sys
56 import subprocess 57 import subprocess
57 58
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 # Write the 'revision' file 255 # Write the 'revision' file
255 revision = utils.GetSVNRevision() 256 revision = utils.GetSVNRevision()
256 257
257 if revision is not None: 258 if revision is not None:
258 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 259 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
259 f.write(revision + '\n') 260 f.write(revision + '\n')
260 f.close() 261 f.close()
261 262
262 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 263 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
264 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
263 265
264 move(SDK_tmp, SDK) 266 move(SDK_tmp, SDK)
265 267
266 if __name__ == '__main__': 268 if __name__ == '__main__':
267 sys.exit(Main()) 269 sys.exit(Main())
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