(svn r5493) -Fix: 'grep -o' isn't supported on all targets. 'sed' is, so use thatone (tokai)
authortruelight
Thu, 13 Jul 2006 18:34:45 +0000
changeset 4135 776e8f849206
parent 4134 cfcb0c8b78f6
child 4136 782e61caf90d
(svn r5493) -Fix: 'grep -o' isn't supported on all targets. 'sed' is, so use thatone (tokai)
Makefile
--- a/Makefile	Thu Jul 13 18:16:15 2006 +0000
+++ b/Makefile	Thu Jul 13 18:34:45 2006 +0000
@@ -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