* [PATCH 1/2] perf Makefile: fix GNU-only grep usage
@ 2014-08-25 19:36 John Spencer
2014-08-26 6:46 ` Namhyung Kim
0 siblings, 1 reply; 2+ messages in thread
From: John Spencer @ 2014-08-25 19:36 UTC (permalink / raw)
To: linux-perf-users
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 0001-perf-Makefile-fix-GNU-only-grep-usage.patch --]
[-- Type: text/plain, Size: 836 bytes --]
From efa79d5b7bc750369332a3a34442573af7b1b35c Mon Sep 17 00:00:00 2001
From: John Spencer <maillist-linux@barfooze.de>
Date: Mon, 25 Aug 2014 21:24:30 +0200
Subject: [PATCH 1/2] perf Makefile: fix GNU-only grep usage
this makes it work with non-GNU grep's as well.
Signed-off-by: John Spencer <maillist-linux@barfooze.de>
---
tools/perf/config/utilities.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/config/utilities.mak b/tools/perf/config/utilities.mak
index 4d985e0..7076a62 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
#
--
1.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] perf Makefile: fix GNU-only grep usage
2014-08-25 19:36 [PATCH 1/2] perf Makefile: fix GNU-only grep usage John Spencer
@ 2014-08-26 6:46 ` Namhyung Kim
0 siblings, 0 replies; 2+ messages in thread
From: Namhyung Kim @ 2014-08-26 6:46 UTC (permalink / raw)
To: John Spencer; +Cc: linux-perf-users, linux-kernel
Hi John,
You'd better to CC the lkml (linux-kernel@vger.kernel.org) for the perf
patches to get reviewed by other developers. I'm copying to the list
this time.
On Mon, 25 Aug 2014 21:36:32 +0200, John Spencer wrote:
> From efa79d5b7bc750369332a3a34442573af7b1b35c Mon Sep 17 00:00:00 2001
> From: John Spencer <maillist-linux@barfooze.de>
> Date: Mon, 25 Aug 2014 21:24:30 +0200
> Subject: [PATCH 1/2] perf Makefile: fix GNU-only grep usage
>
> 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>
Thanks,
Namhyung
>
> ---
> tools/perf/config/utilities.mak | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/config/utilities.mak b/tools/perf/config/utilities.mak
> index 4d985e0..7076a62 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
> #
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-26 6:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25 19:36 [PATCH 1/2] perf Makefile: fix GNU-only grep usage John Spencer
2014-08-26 6:46 ` Namhyung Kim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.