| Index: third_party/pkg/update_perf.sh
|
| diff --git a/third_party/pkg/update_perf.sh b/third_party/pkg/update_perf.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..04b30bb5c7d8caaa6b76d9137582ad5670438dac
|
| --- /dev/null
|
| +++ b/third_party/pkg/update_perf.sh
|
| @@ -0,0 +1,23 @@
|
| +#!/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 perf_api
|
| +
|
| +echo "*** Syncing code"
|
| +git clone https://github.com/google/perf_api.dart perf_api
|
| +
|
| +pushd perf_api > /dev/null
|
| +readonly REVISION=`git rev-parse HEAD`
|
| +rm -rf .git
|
| +
|
| +echo "${REVISION}" >> REVISION
|
| +echo "*** Updated to revision $REVISION"
|
|
|