talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f2f20fc45d81f91fbcab14e79d69d509ada694b2
parent 5783d2a913dfd980d77c0be13557a54ad5c75e6a
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Fri, 24 Aug 2018 13:48:38 +0200

Fix configure version detection when building outside of srcdir.

Diffstat:
Mconfigure.ac | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac @@ -21,8 +21,13 @@ if test \( -d .git \); then echo "echo ${GIT_VERSION}" > ./version fi else - GIT_VERSION=`sh -c ". ./$srcdir/version"` + GIT_VERSION=`sh -c ". $srcdir/version"` fi + +if test \( -z "$GIT_VERSION" \); then + AC_MSG_ERROR([*** could not determine program version]) +fi + MAJOR_VERSION=${GIT_VERSION%%.*} MINOR_VERSION=${GIT_VERSION#*.} MINOR_VERSION=${MINOR_VERSION%%.*}