From: Adam Dickmeiss Date: Mon, 29 Dec 2008 15:53:09 +0000 (+0100) Subject: Fixed test that makes VERSION_SHA1 appear on dist versions too. X-Git-Tag: v3.0.41~1 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=9fdcce5bf33b647a635631f96f295394d729df7b;p=yaz-moved-to-github.git Fixed test that makes VERSION_SHA1 appear on dist versions too. --- diff --git a/configure.ac b/configure.ac index 4b26ec3..70fad35 100644 --- a/configure.ac +++ b/configure.ac @@ -396,7 +396,7 @@ WIN_FILEVERSION=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { m = $4; pri AC_SUBST([WIN_FILEVERSION]) YAZ_VERSION_HEX=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { printf("%x", ($1 * 256 + $2) * 256 + $3);}'` AC_SUBST([YAZ_VERSION_HEX]) -if test ${srcdir}/.git; then +if test -d ${srcdir}/.git; then VERSION_SHA1=`git show --pretty=format:%H|head -1` else VERSION_SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`