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

Side by Side Diff: tools/create_sdk.py

Issue 11622011: Restructure YAML package suitable for pub lish (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add yaml exclude Created 7 years, 10 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 | « pkg/yaml/test/yaml_test.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 215
216 # Create and copy pkg. 216 # Create and copy pkg.
217 PKG = join(SDK_tmp, 'pkg') 217 PKG = join(SDK_tmp, 'pkg')
218 os.makedirs(PKG) 218 os.makedirs(PKG)
219 219
220 # 220 #
221 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} 221 # Create and populate pkg/{args, intl, logging, meta, unittest, ...}
222 # 222 #
223 223
224 for library in ['args', 'http', 'intl', 'logging', 224 for library in ['args', 'http', 'intl', 'logging', 'meta', 'oauth2', 'path',
225 'meta', 'oauth2', 'path', 'serialization', 'unittest']: 225 'serialization', 'unittest', 'yaml']:
226 226
227 copytree(join(HOME, 'pkg', library), join(PKG, library), 227 copytree(join(HOME, 'pkg', library), join(PKG, library),
228 ignore=ignore_patterns('*.svn', 'doc', 'docs', 228 ignore=ignore_patterns('*.svn', 'doc', 'docs',
229 '*.py', '*.gypi', '*.sh', 'packages')) 229 '*.py', '*.gypi', '*.sh', 'packages'))
230 230
231 # Create and copy tools. 231 # Create and copy tools.
232 UTIL = join(SDK_tmp, 'util') 232 UTIL = join(SDK_tmp, 'util')
233 os.makedirs(UTIL) 233 os.makedirs(UTIL)
234 234
235 # Create and copy Analyzer library into 'util' 235 # Create and copy Analyzer library into 'util'
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 309 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
310 f.write(revision + '\n') 310 f.write(revision + '\n')
311 f.close() 311 f.close()
312 312
313 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 313 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
314 314
315 move(SDK_tmp, SDK) 315 move(SDK_tmp, SDK)
316 316
317 if __name__ == '__main__': 317 if __name__ == '__main__':
318 sys.exit(Main(sys.argv)) 318 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « pkg/yaml/test/yaml_test.dart ('k') | utils/apidoc/apidoc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698