OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 # bail on error | 6 # bail on error |
7 set -e | 7 set -e |
8 source update.sh | 8 source update.sh |
9 | 9 |
10 update "di" "https://github.com/angular/di.dart" | 10 update "di" "https://github.com/angular/di.dart" |
11 | 11 |
12 echo "*** Generating static injector test files" | 12 echo "*** Generating static injector test files" |
13 pushd di > /dev/null | 13 pushd di > /dev/null |
14 | 14 |
15 pub install | 15 pub install |
16 DART_SDK=../../../out/ReleaseIA32/dart-sdk | 16 DART_SDK=../../../out/ReleaseIA32/dart-sdk |
17 $DART_SDK/bin/dart \ | 17 $DART_SDK/bin/dart \ |
18 --package-root=$DART_SDK/../packages/ \ | 18 --package-root=$DART_SDK/../packages/ \ |
19 bin/generator.dart \ | 19 bin/generator.dart \ |
20 $DART_SDK/ \ | 20 $DART_SDK/ \ |
21 test/main.dart \ | 21 test/main.dart \ |
22 di.tests.Injectable \ | 22 di.tests.InjectableTest \ |
23 test/type_factories_gen.dart \ | 23 test/type_factories_gen.dart \ |
24 packages/ | 24 packages/ |
25 | 25 |
26 # Use tput to set console to red & go back to black. | 26 # Use tput to set console to red & go back to black. |
27 echo "$(tput setaf 1)di/test/type_factories_gen.dart regenerated, \ | 27 echo "$(tput setaf 1)di/test/type_factories_gen.dart regenerated, \ |
28 requires manual fixup of imports.$(tput sgr0)" | 28 requires manual fixup of imports.$(tput sgr0)" |
29 | 29 |
30 echo "*** Cleaning up packages" | 30 echo "*** Cleaning up packages" |
31 rm -rf packages | 31 rm -rf packages |
OLD | NEW |