Chromium Code Reviews| Index: third_party/pkg/di/update.sh |
| diff --git a/third_party/pkg/di/update.sh b/third_party/pkg/di/update.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..ffc9bd841d74ff975d32856138ed0cdc79193bc3 |
| --- /dev/null |
| +++ b/third_party/pkg/di/update.sh |
| @@ -0,0 +1,39 @@ |
| +#!/bin/bash |
| +# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| +# for details. All rights reserved. Use of this source code is governed by a |
| +# BSD-style license that can be found in the LICENSE file. |
| + |
| +# bail on error |
| +set -e |
| + |
| +DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
| +echo $DIR |
| +pushd $DIR > /dev/null |
| + |
| +echo "*** Syncing code" |
| +GIT_REMOTE=https://github.com/angular/di.dart.git |
| +GIT_DIR=di |
| +git init |
| +git add . |
| +git commit -a -m 'adding current state of repo' |
| +git remote add origin https://github.com/angular/di.dart |
| +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.
|
| +REVISION=`git rev-parse HEAD` |
| +rm -rf .git |
| + |
| +echo "*** Generating static injector test files" |
| +pub install |
| +DART_SDK=../../../out/ReleaseIA32/dart-sdk |
| +$DART_SDK/bin/dart \ |
| + --package-root=$DART_SDK/../packages/ \ |
| + bin/generator.dart \ |
| + $DART_SDK/ \ |
| + test/main.dart \ |
| + di.tests.Injectable \ |
| + test/type_factories_gen.dart \ |
| + packages/ |
| + |
| +echo "*** Cleaning up packages" |
| +rm -rf packages |
| + |
| +echo "*** Updated to revision $REVISION" |