Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/bin/bash | |
| 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 | |
| 4 # BSD-style license that can be found in the LICENSE file. | |
| 5 | |
| 6 # bail on error | |
| 7 set -e | |
| 8 | |
| 9 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) | |
| 10 echo $DIR | |
| 11 pushd $DIR > /dev/null | |
| 12 | |
| 13 echo "*** Syncing code" | |
| 14 GIT_REMOTE=https://github.com/angular/di.dart.git | |
| 15 GIT_DIR=di | |
| 16 git init | |
| 17 git add . | |
| 18 git commit -a -m 'adding current state of repo' | |
| 19 git remote add origin https://github.com/angular/di.dart | |
| 20 git pull --rebase origin master | |
|
Siggi Cherem (dart-lang)
2013/12/20 23:40:20
do we expect to have patches in this repo? if not,
blois
2013/12/21 00:00:12
Done.
| |
| 21 REVISION=`git rev-parse HEAD` | |
| 22 rm -rf .git | |
| 23 | |
| 24 echo "*** Generating static injector test files" | |
| 25 pub install | |
| 26 DART_SDK=../../../out/ReleaseIA32/dart-sdk | |
| 27 $DART_SDK/bin/dart \ | |
| 28 --package-root=$DART_SDK/../packages/ \ | |
| 29 bin/generator.dart \ | |
| 30 $DART_SDK/ \ | |
| 31 test/main.dart \ | |
| 32 di.tests.Injectable \ | |
| 33 test/type_factories_gen.dart \ | |
| 34 packages/ | |
| 35 | |
| 36 echo "*** Cleaning up packages" | |
| 37 rm -rf packages | |
| 38 | |
| 39 echo "*** Updated to revision $REVISION" | |
| OLD | NEW |