From: John Spencer Date: Mon, 25 Aug 2014 19:36:32 +0000 (+0200) Subject: perf tools: Fix GNU-only grep usage in Makefile X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bf9e3e5763722c9668c6719a1de60ee58452b738;p=deliverable%2Flinux.git perf tools: Fix GNU-only grep usage in Makefile This makes it work with non-GNU grep's as well. Signed-off-by: John Spencer Acked-by: Namhyung Kim Link: http://thread.gmane.org/gmane.linux.kernel.perf.user/1686 Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/config/utilities.mak b/tools/perf/config/utilities.mak index 4d985e0f03f5..7076a62d0ff7 100644 --- a/tools/perf/config/utilities.mak +++ b/tools/perf/config/utilities.mak @@ -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 #