From 97c2d3d76488ff696d005f9363f20abad8248218 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 13 Jul 2006 18:34:45 +0000 Subject: (svn r5493) -Fix: 'grep -o' isn't supported on all targets. 'sed' is, so use thatone (tokai) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2