From: Matthias Andree Date: Fri, 21 Dec 2012 10:07:13 +0000 (+0100) Subject: Fix VPATH build outside Mercurial repositories. X-Git-Tag: neomutt-20160307~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73e37a7fbb2186e359c6e6594b43b8d866d9269d;p=neomutt Fix VPATH build outside Mercurial repositories. --- diff --git a/version.sh b/version.sh index c3cb5439e..a3ace4e02 100644 --- a/version.sh +++ b/version.sh @@ -6,7 +6,8 @@ HG=hg # Ensure that we have a repo here and that mercurial is installed. If # not, just cat the VERSION file; it contains the latest release number. -{ [ -d "$HGROOT/.hg" ] && $HG >/dev/null 2>&1; } || exec cat VERSION +{ [ -d "$HGROOT/.hg" ] && $HG >/dev/null 2>&1; } \ +|| exec cat "$HGROOT/VERSION" # This is a mercurial repo and we have the hg command.