Fixed test that makes VERSION_SHA1 appear on dist versions too.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Dec 2008 15:53:09 +0000 (16:53 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Dec 2008 15:53:09 +0000 (16:53 +0100)
configure.ac

index 4b26ec3..70fad35 100644 (file)
@@ -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}'`