All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Spencer <maillist-linux@barfooze.de>
To: linux-perf-users@vger.kernel.org
Subject: [PATCH 1/2] perf Makefile: fix GNU-only grep usage
Date: Mon, 25 Aug 2014 21:36:32 +0200	[thread overview]
Message-ID: <53FB9040.8060802@barfooze.de> (raw)

[-- 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


             reply	other threads:[~2014-08-25 20:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25 19:36 John Spencer [this message]
2014-08-26  6:46 ` [PATCH 1/2] perf Makefile: fix GNU-only grep usage Namhyung Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53FB9040.8060802@barfooze.de \
    --to=maillist-linux@barfooze.de \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.