6 if [ "x$fallback" = "x" ]; then
10 if [ -f $srcdir/.version
] ; then
11 git_version
=`cat $srcdir/.version`
13 if which git
> /dev
/null
; then
15 git_version
=`git describe --abbrev=4 HEAD 2>/dev/null`
17 # Is the working tree dirty?
18 if git diff-index
--quiet --cached HEAD
&& \
19 git diff-files
--quiet ; then
22 git_version
="$git_version-dirty"
32 echo "$git_version" |
sed -e 's/openafs-[^-]*-//' -e 's/_/./g' |
tr -d '\012'