fix: Use git tags for version numbers. (#233)

This commit is contained in:
Ali Karbassi
2017-10-11 10:10:59 -05:00
committed by GitHub
parent a43d664fe9
commit 4df0f15ad8

View File

@@ -8,7 +8,7 @@ LF='
' '
if test -d .git -o -f .git && if test -d .git -o -f .git &&
VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && VN=$(git describe --abbrev=0 --tags 2>/dev/null) &&
case "$VN" in case "$VN" in
*$LF*) (exit 1) ;; *$LF*) (exit 1) ;;
v[0-9]*) v[0-9]*)