| OLD | NEW |
| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 ReplaceInFiles( | 250 ReplaceInFiles( |
| 251 [join(LIB, '_internal', 'libraries.dart')], | 251 [join(LIB, '_internal', 'libraries.dart')], |
| 252 [('"compiler/', '"../pkg/compiler/')]) | 252 [('"compiler/', '"../pkg/compiler/')]) |
| 253 | 253 |
| 254 ReplaceInFiles( | 254 ReplaceInFiles( |
| 255 [join(PKG, 'compiler', 'implementation', 'lib', 'io.dart')], | 255 [join(PKG, 'compiler', 'implementation', 'lib', 'io.dart')], |
| 256 [('../../runtime/bin', '../../lib/io/runtime')]) | 256 [('../../runtime/bin', '../../lib/io/runtime')]) |
| 257 | 257 |
| 258 # Fixup dartdoc | 258 # Fixup dartdoc |
| 259 ReplaceInFiles([ | |
| 260 join(PKG, 'dartdoc', 'bin', 'dartdoc.dart'), | |
| 261 ], [ | |
| 262 ("final bool _IN_SDK = false;", | |
| 263 "final bool _IN_SDK = true;"), | |
| 264 ]) | |
| 265 | |
| 266 # TODO(dgrove): Remove this once issue 4788 is addressed. | 259 # TODO(dgrove): Remove this once issue 4788 is addressed. |
| 267 ReplaceInFiles([ | 260 ReplaceInFiles([ |
| 268 join(PKG, 'dartdoc', 'lib', 'src', 'mirrors', 'dart2js_mirror.dart'), | 261 join(PKG, 'dartdoc', 'lib', 'src', 'mirrors', 'dart2js_mirror.dart'), |
| 269 join(PKG, 'dartdoc', 'lib', 'mirrors_util.dart'), | 262 join(PKG, 'dartdoc', 'lib', 'mirrors_util.dart'), |
| 270 join(PKG, 'dartdoc', 'lib', 'classify.dart'), | 263 join(PKG, 'dartdoc', 'lib', 'classify.dart'), |
| 271 join(PKG, 'dartdoc', 'lib', 'src', 'client', 'client-live-nav.dart'), | 264 join(PKG, 'dartdoc', 'lib', 'src', 'client', 'client-live-nav.dart'), |
| 272 join(PKG, 'dartdoc', 'lib', 'src', 'client', 'client-static.dart'), | 265 join(PKG, 'dartdoc', 'lib', 'src', 'client', 'client-static.dart'), |
| 273 join(PKG, 'dartdoc', 'lib', 'dartdoc.dart'), | 266 join(PKG, 'dartdoc', 'lib', 'dartdoc.dart'), |
| 274 ], [ | 267 ], [ |
| 275 ("../../lib/compiler", | 268 ("../../lib/compiler", |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 if revision is not None: | 306 if revision is not None: |
| 314 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 315 f.write(revision + '\n') | 308 f.write(revision + '\n') |
| 316 f.close() | 309 f.close() |
| 317 | 310 |
| 318 move(SDK_tmp, SDK) | 311 move(SDK_tmp, SDK) |
| 319 utils.Touch(os.path.join(SDK, 'create.stamp')) | 312 utils.Touch(os.path.join(SDK, 'create.stamp')) |
| 320 | 313 |
| 321 if __name__ == '__main__': | 314 if __name__ == '__main__': |
| 322 sys.exit(Main(sys.argv)) | 315 sys.exit(Main(sys.argv)) |
| OLD | NEW |