diff options
Diffstat (limited to 'contrib/git/rev_id.sh')
-rwxr-xr-x | contrib/git/rev_id.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/contrib/git/rev_id.sh b/contrib/git/rev_id.sh deleted file mode 100755 index 0d3d8d5da85..00000000000 --- a/contrib/git/rev_id.sh +++ /dev/null @@ -1,20 +0,0 @@ -#/bin/bash -command=$(git describe --match init --abbrev=12) -IFS="-" -cmdarray=($command) - -if [ "$1" != "-id" ] && [ "$1" != "-hash" ]; then - echo "Usage: $0 <-id | -hash>" - exit -fi - -if [ "${cmdarray[1]}" == "" ] || [ "${cmdarray[2]}" == "" ]; then - echo "Error: No valid revision information found" - exit 1 -fi - -if [ "$1" == "-id" ]; then - echo ${cmdarray[1]} -elif [ "$1" == "-hash" ]; then - echo ${cmdarray[2]:1} -fi |