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

Side by Side Diff: tools/create_sdk.py

Issue 10924003: Add meta to the SDK (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/meta/meta.dart ('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 23 matching lines...) Expand all
34 # ......mirrors/ 34 # ......mirrors/
35 # ......uri/ 35 # ......uri/
36 # ......utf/ 36 # ......utf/
37 # ....pkg/ 37 # ....pkg/
38 # ......args/ 38 # ......args/
39 # ......compiler/ 39 # ......compiler/
40 # ......dartdoc/ 40 # ......dartdoc/
41 #.......htmlescape/ 41 #.......htmlescape/
42 # ......intl/ 42 # ......intl/
43 # ......logging/ 43 # ......logging/
44 # ......meta/
44 # ......unittest/ 45 # ......unittest/
45 # ......(more will come here) 46 # ......(more will come here)
46 # ....util/ 47 # ....util/
47 # ......analyzer/ 48 # ......analyzer/
48 # ........dart_analyzer.jar 49 # ........dart_analyzer.jar
49 # ........(third-party libraries for dart_analyzer) 50 # ........(third-party libraries for dart_analyzer)
50 # ......pub/ 51 # ......pub/
51 # ......(more will come here) 52 # ......(more will come here)
52 53
53 54
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 'crypto', 'isolate', 'json', 'math', 'mirrors', 'uri', 'utf']: 227 'crypto', 'isolate', 'json', 'math', 'mirrors', 'uri', 'utf']:
227 copytree(join(HOME, 'lib', library), join(LIB, library), 228 copytree(join(HOME, 'lib', library), join(LIB, library),
228 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 229 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
229 230
230 231
231 # Create and copy pkg. 232 # Create and copy pkg.
232 PKG = join(SDK_tmp, 'pkg') 233 PKG = join(SDK_tmp, 'pkg')
233 os.makedirs(PKG) 234 os.makedirs(PKG)
234 235
235 # 236 #
236 # Create and populate pkg/{args, intl, logging, unittest} 237 # Create and populate pkg/{args, intl, logging, meta, unittest}
237 # 238 #
238 239
239 for library in ['args', 'htmlescape', 'dartdoc', 'intl', 'logging', 240 for library in ['args', 'htmlescape', 'dartdoc', 'intl', 'logging',
240 'unittest']: 241 'meta', 'unittest']:
241 copytree(join(HOME, 'pkg', library), join(PKG, library), 242 copytree(join(HOME, 'pkg', library), join(PKG, library),
242 ignore=ignore_patterns('*.svn', 'doc', 'docs', 243 ignore=ignore_patterns('*.svn', 'doc', 'docs',
243 '*.py', '*.gypi', '*.sh')) 244 '*.py', '*.gypi', '*.sh'))
244 245
245 # TODO(dgrove): Remove this once issue 4788 is addressed. 246 # TODO(dgrove): Remove this once issue 4788 is addressed.
246 copytree(join(HOME, 'lib', 'compiler'), join(PKG, 'compiler'), 247 copytree(join(HOME, 'lib', 'compiler'), join(PKG, 'compiler'),
247 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 248 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
248 249
249 ReplaceInFiles( 250 ReplaceInFiles(
250 [join(LIB, '_internal', 'libraries.dart')], 251 [join(LIB, '_internal', 'libraries.dart')],
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 if revision is not None: 313 if revision is not None:
313 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 314 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
314 f.write(revision + '\n') 315 f.write(revision + '\n')
315 f.close() 316 f.close()
316 317
317 move(SDK_tmp, SDK) 318 move(SDK_tmp, SDK)
318 utils.Touch(os.path.join(SDK, 'create.stamp')) 319 utils.Touch(os.path.join(SDK, 'create.stamp'))
319 320
320 if __name__ == '__main__': 321 if __name__ == '__main__':
321 sys.exit(Main(sys.argv)) 322 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « pkg/meta/meta.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698