9 if test -d .git
-o -f .git
&&
10 VN
=$
(git describe
--abbrev=4 HEAD
2>/dev
/null
) &&
14 git update-index
-q --refresh
15 test -z "$(git diff-index --name-only HEAD --)" ||
19 VN
=$
(echo "$VN" |
sed -e 's/-/./g');
24 VN
=$
(expr "$VN" : v
*'\(.*\)')
28 VC
=$
(sed -e 's/^GIT_VERSION = //' <$GVF)
32 test "$VN" = "$VC" ||
{
33 echo >&2 "GIT_VERSION = $VN"
34 echo "GIT_VERSION = $VN" >$GVF