Chromium Code Reviews| Index: third_party/pkg/update_route_hierarchical.sh |
| diff --git a/third_party/pkg/update_route_hierarchical.sh b/third_party/pkg/update_route_hierarchical.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..5a66c4ee0e55b116ba7a3dc52111810fa4e62c5f |
| --- /dev/null |
| +++ b/third_party/pkg/update_route_hierarchical.sh |
| @@ -0,0 +1,24 @@ |
| +#!/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 |
| + |
| +readonly DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
| +pushd $DIR > /dev/null |
| + |
| +echo "*** Deleting old version" |
| +rm -rf route_hierarchical |
| + |
| +echo "*** Syncing code" |
| +git clone https://github.com/dart-lang/route.git route_hierarchical |
| + |
| +pushd route_hierarchical > /dev/null |
| +git checkout experimental_hierarchical |
| +readonly REVISION=`git rev-parse HEAD` |
| +rm -rf .git |
| + |
| +echo "${REVISION}" >> REVISION |
| +echo "*** Updated to revision $REVISION" |
|
Siggi Cherem (dart-lang)
2014/01/03 22:21:13
I'm ok either way, but since this code is so simil
|