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

Side by Side Diff: tools/create_sdk.py

Issue 11411335: create_sdk should not copy packages directories for things under pkg (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 os.makedirs(PKG) 216 os.makedirs(PKG)
217 217
218 # 218 #
219 # Create and populate pkg/{args, intl, logging, meta, unittest, ...} 219 # Create and populate pkg/{args, intl, logging, meta, unittest, ...}
220 # 220 #
221 221
222 for library in ['args', 'http', 'intl', 'logging', 222 for library in ['args', 'http', 'intl', 'logging',
223 'meta', 'oauth2', 'unittest']: 223 'meta', 'oauth2', 'unittest']:
224 copytree(join(HOME, 'pkg', library), join(PKG, library), 224 copytree(join(HOME, 'pkg', library), join(PKG, library),
225 ignore=ignore_patterns('*.svn', 'doc', 'docs', 225 ignore=ignore_patterns('*.svn', 'doc', 'docs',
226 '*.py', '*.gypi', '*.sh')) 226 '*.py', '*.gypi', '*.sh', 'packages'))
227 227
228 # Create and copy tools. 228 # Create and copy tools.
229 UTIL = join(SDK_tmp, 'util') 229 UTIL = join(SDK_tmp, 'util')
230 os.makedirs(UTIL) 230 os.makedirs(UTIL)
231 231
232 if ShouldCopyAnalyzer(): 232 if ShouldCopyAnalyzer():
233 # Create and copy Analyzer library into 'util' 233 # Create and copy Analyzer library into 'util'
234 ANALYZER_DEST = join(UTIL, 'analyzer') 234 ANALYZER_DEST = join(UTIL, 'analyzer')
235 os.makedirs(ANALYZER_DEST) 235 os.makedirs(ANALYZER_DEST)
236 236
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
308 f.write(revision + '\n') 308 f.write(revision + '\n')
309 f.close() 309 f.close()
310 310
311 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 311 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
312 312
313 move(SDK_tmp, SDK) 313 move(SDK_tmp, SDK)
314 314
315 if __name__ == '__main__': 315 if __name__ == '__main__':
316 sys.exit(Main(sys.argv)) 316 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