summaryrefslogtreecommitdiff
path: root/Makefile.src.in
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-10-21 17:19:18 +0000
committerglx <glx@openttd.org>2007-10-21 17:19:18 +0000
commit9bce98ef699cdaa00b6d005194b81cf13d4a37f8 (patch)
tree9d27da3af287f6e978fad05018a113ac96db9813 /Makefile.src.in
parent5131ea98dbf771adf4ca191166714b2b628d822a (diff)
downloadopenttd-9bce98ef699cdaa00b6d005194b81cf13d4a37f8.tar.xz
(svn r11335) -Fix (r11148): only consider changes in src when detecting modified (M) version
Diffstat (limited to 'Makefile.src.in')
-rw-r--r--Makefile.src.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.src.in b/Makefile.src.in
index d6d498546..eb57a0b8f 100644
--- a/Makefile.src.in
+++ b/Makefile.src.in
@@ -111,7 +111,7 @@ else
# Are we a hg (Mercurial) dir?
ifeq ($(shell if test -d $(SRC_DIR)/../.hg; then echo 1; fi), 1)
# Find the revision like: hXXXXM-branch
-REV := h$(shell if head=`LC_ALL=C hg tip 2>/dev/null`; then echo "$$head" | head -n 1 | cut -c19-26; fi)$(shell if hg status | grep -v '^?' | read dummy; then echo M; fi)$(shell hg branch | sed 's/^/-/;s/^-default$$//')
+REV := h$(shell if head=`LC_ALL=C hg tip 2>/dev/null`; then echo "$$head" | head -n 1 | cut -c19-26; fi)$(shell if hg status $(SRC_DIR) | grep -v '^?' | read dummy; then echo M; fi)$(shell hg branch | sed 's/^/-/;s/^-default$$//')
REV_NR := $(shell LC_ALL=C hg log -k "svn" -l 1 --template "{desc}\n" $(SRC_DIR) | grep "^(svn r[0-9]*)" | head -n 1 | sed "s/.*(svn r\([0-9]*\)).*/\1/" )
endif
endif