| 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 | 8 |
| 9 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) | 9 readonly DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
| 10 echo $DIR | 10 echo $DIR |
| 11 pushd $DIR > /dev/null | 11 pushd $DIR > /dev/null |
| 12 | 12 |
| 13 echo "*** Deleting old version" | 13 echo "*** Deleting old version" |
| 14 rm -rf di | 14 rm -rf di |
| 15 | 15 |
| 16 echo "*** Syncing code" | 16 echo "*** Syncing code" |
| 17 git clone https://github.com/angular/di.dart di | 17 git clone https://github.com/angular/di.dart di |
| 18 | 18 |
| 19 pushd di | 19 pushd di |
| 20 REVISION=`git rev-parse HEAD` | 20 readonly REVISION=`git rev-parse HEAD` |
| 21 rm -rf .git | 21 rm -rf .git |
| 22 | 22 |
| 23 echo "*** Generating static injector test files" | 23 echo "*** Generating static injector test files" |
| 24 pub install | 24 pub install |
| 25 DART_SDK=../../../out/ReleaseIA32/dart-sdk | 25 readonly DART_SDK=../../../out/ReleaseIA32/dart-sdk |
| 26 $DART_SDK/bin/dart \ | 26 $DART_SDK/bin/dart \ |
| 27 --package-root=$DART_SDK/../packages/ \ | 27 --package-root=$DART_SDK/../packages/ \ |
| 28 bin/generator.dart \ | 28 bin/generator.dart \ |
| 29 $DART_SDK/ \ | 29 $DART_SDK/ \ |
| 30 test/main.dart \ | 30 test/main.dart \ |
| 31 di.tests.Injectable \ | 31 di.tests.Injectable \ |
| 32 test/type_factories_gen.dart \ | 32 test/type_factories_gen.dart \ |
| 33 packages/ | 33 packages/ |
| 34 | 34 |
| 35 echo "*** Cleaning up packages" | 35 echo "*** Cleaning up packages" |
| 36 rm -rf packages | 36 rm -rf packages |
| 37 | 37 |
| 38 echo "${REVISION}" >> REVISION |
| 38 echo "*** Updated to revision $REVISION" | 39 echo "*** Updated to revision $REVISION" |
| OLD | NEW |