Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (14 sloc) 0.337 kB
#!/bin/sh
LF='
'
VN=$(git describe --match "v[0-9]*" --abbrev=4 HEAD 2>/dev/null)
case "$VN" in
*$LF*) (exit 1) ;;
v[0-9]*)
git update-index -q --refresh
test -z "$(git diff-index --name-only HEAD --)" ||
VN="$VN-dirty" ;;
esac
VN=$(echo "$VN" | sed -e 's/-/./g');
VN=$(expr "$VN" : v*'\(.*\)')
echo "$VN"
Jump to Line
Something went wrong with that request. Please try again.