perf tools: Fix GNU-only grep usage in Makefile
authorJohn Spencer <maillist-linux@barfooze.de>
Mon, 25 Aug 2014 19:36:32 +0000 (21:36 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Sep 2014 20:08:09 +0000 (17:08 -0300)
This makes it work with non-GNU grep's as well.

Signed-off-by: John Spencer <maillist-linux@barfooze.de>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: http://thread.gmane.org/gmane.linux.kernel.perf.user/1686
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/config/utilities.mak

index 4d985e0f03f584f666fb74b86efd095a064ebaae..7076a62d0ff72c094ca0bb2e1eae7308aaaf948f 100644 (file)
@@ -132,7 +132,7 @@ endef
 #
 # Usage: bool-value = $(call is-absolute,path)
 #
-is-absolute = $(shell echo $(shell-sq) | grep ^/ -q && echo y)
+is-absolute = $(shell echo $(shell-sq) | grep -q ^/ && echo y)
 
 # lookup
 #