6 # First try git-describe, then see if there is a version file
7 # (included in release tarballs), then default
8 VN=$(git-describe --abbrev=4 HEAD 2>/dev/null) ||
12 VN=$(expr "$VN" : v*'\(.*\)')
15 VC=$(sed -e 's/^GIT_VERSION = //' <$GVF)
19 test "$VN" = "$VC" || {
20 echo >&2 "GIT_VERSION = $VN"
21 echo "GIT_VERSION = $VN" >$GVF