summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-07-13 18:34:45 +0000
committertruelight <truelight@openttd.org>2006-07-13 18:34:45 +0000
commit97c2d3d76488ff696d005f9363f20abad8248218 (patch)
tree0ad689770f5c8fcc3b78c8c67443dfe44627a656 /Makefile
parent431c861a8f141fe6730e361fa17ca1fce10501b2 (diff)
downloadopenttd-97c2d3d76488ff696d005f9363f20abad8248218.tar.xz
(svn r5493) -Fix: 'grep -o' isn't supported on all targets. 'sed' is, so use thatone (tokai)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6471b6ebd..344374b1c 100644
--- a/Makefile
+++ b/Makefile
@@ -259,7 +259,7 @@ ifdef RELEASE
REV:=$(RELEASE)
else
ifeq ($(shell if test -d .svn; then echo 1; fi), 1)
-REV_MODIFIED := $(shell svnversion . | grep -o M)
+REV_MODIFIED := $(shell svnversion . | sed -n 's/.*\(M\).*/\1/p' )
REV := $(shell LC_ALL=C svn info | awk '/^URL:.*branch/ { BRANCH="-"a[split($$2, a, "/")] } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
endif
endif