Fix build for out-of-source objdir
This commit is contained in:

committed by
Jeffrey Altman

parent
9aa573c9ce
commit
f2bd714e69
@@ -735,12 +735,13 @@ else
|
|||||||
User=${USER:-${LOGNAME:-`id -nu`}}
|
User=${USER:-${LOGNAME:-`id -nu`}}
|
||||||
fi
|
fi
|
||||||
if test -d "$srcdir/.git"; then
|
if test -d "$srcdir/.git"; then
|
||||||
GitCommit=`git rev-parse HEAD`
|
GitCommit=`cd $srcdir && git rev-parse HEAD`
|
||||||
GitBranch=`git rev-parse --abbrev-ref HEAD`
|
GitBranch=`cd $srcdir && git rev-parse --abbrev-ref HEAD`
|
||||||
if test "x$GitBranch" = master; then
|
if test "x$GitBranch" = master; then
|
||||||
GitDesc=`git describe --all --dirty`
|
GitDesc=`cd $srcdir && git describe --all --dirty`
|
||||||
else
|
else
|
||||||
GitDesc=`git describe --tags --match 'heimdal-*' --dirty`
|
GitDesc=`cd $srcdir && \
|
||||||
|
git describe --tags --match 'heimdal-*' --dirty`
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
GitCommit='<commit-unknown>'
|
GitCommit='<commit-unknown>'
|
||||||
|
Reference in New Issue
Block a user