]> granicus.if.org Git - neomutt/commitdiff
Fix VPATH build outside Mercurial repositories.
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 21 Dec 2012 10:07:13 +0000 (11:07 +0100)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 21 Dec 2012 10:07:13 +0000 (11:07 +0100)
version.sh

index c3cb5439e66764374219077ed2c25ca856a1763b..a3ace4e026a191ce6aa8e7c2d929bcb6e0dd5c5d 100644 (file)
@@ -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.