summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/build-perf-test-wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib/build-perf-test-wrapper.sh')
-rwxr-xr-xscripts/contrib/build-perf-test-wrapper.sh30
1 files changed, 23 insertions, 7 deletions
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh
index e8e8021d58..8eb4fdbc6c 100755
--- a/scripts/contrib/build-perf-test-wrapper.sh
+++ b/scripts/contrib/build-perf-test-wrapper.sh
@@ -20,17 +20,33 @@
20 20
21script=`basename $0` 21script=`basename $0`
22usage () { 22usage () {
23 echo "Usage: $script [COMMITISH]" 23cat << EOF
24Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO]
25
26Optional arguments:
27 -h show this help and exit.
28 -c COMMITISH test (checkout) this commit
29EOF
24} 30}
25 31
26if [ $# -gt 1 ]; then
27 usage
28 exit 1
29fi
30commitish=$1
31 32
32echo "Running on `uname -n`" 33# Parse command line arguments
34commitish=""
35while getopts "hc:" opt; do
36 case $opt in
37 h) usage
38 exit 0
39 ;;
40 c) commitish=$OPTARG
41 ;;
42 *) usage
43 exit 1
44 ;;
45 esac
46done
47
33 48
49echo "Running on `uname -n`"
34if ! git_topdir=$(git rev-parse --show-toplevel); then 50if ! git_topdir=$(git rev-parse --show-toplevel); then
35 echo "The current working dir doesn't seem to be a git clone. Please cd there before running `basename $0`" 51 echo "The current working dir doesn't seem to be a git clone. Please cd there before running `basename $0`"
36 exit 1 52 exit 1