changeset 4135:0de6fab6e1e2 draft

(svn r5493) -Fix: 'grep -o' isn't supported on all targets. 'sed' is, so use thatone (tokai)
author truelight <truelight@openttd.org>
date Thu, 13 Jul 2006 18:34:45 +0000
parents 26a172593c25
children 7e7bbf87e4e4
files Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile
+++ b/Makefile
@@ -259,7 +259,7 @@
 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