DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 3/4] scripts: fix filtering of comments on bsd
Date: Wed, 18 Jun 2014 21:33:06 +0100	[thread overview]
Message-ID: <1403123587-27433-4-git-send-email-bruce.richardson@intel.com> (raw)
In-Reply-To: <1403123587-27433-1-git-send-email-bruce.richardson@intel.com>

On BSD 10, the cpp binary behaves a little differently and often leaves
lines starting with a space before the inital '#' character. This change
ensures those lines are filtered out properly.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 scripts/gen-config-h.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gen-config-h.sh b/scripts/gen-config-h.sh
index 86b41ab..efd7667 100755
--- a/scripts/gen-config-h.sh
+++ b/scripts/gen-config-h.sh
@@ -34,7 +34,7 @@
 echo "#ifndef __RTE_CONFIG_H"
 echo "#define __RTE_CONFIG_H"
 grep CONFIG_ $1							 \
-| grep -v '^#'							 \
+| grep -v '^[ \t]*#'							 \
 | sed 's,CONFIG_\(.*\)=y.*$,#define \1 1,'			 \
 | sed 's,CONFIG_\(.*\)=n.*$,#undef \1,'				 \
 | sed 's,CONFIG_\(.*\)=\(.*\)$,#define \1 \2,'			 \
-- 
1.9.3

  parent reply	other threads:[~2014-06-18 20:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18 20:33 [dpdk-dev] [PATCH 0/4] minor fixes from BSD and clang testing Bruce Richardson
2014-06-18 20:33 ` [dpdk-dev] [PATCH 1/4] testpmd: fix commandline variable types Bruce Richardson
2014-06-18 20:33 ` [dpdk-dev] [PATCH 2/4] test app: remove unused variable definition Bruce Richardson
2014-06-18 20:33 ` Bruce Richardson [this message]
2014-06-18 20:33 ` [dpdk-dev] [PATCH 4/4] i40e: remove endian.h include Bruce Richardson
2014-06-18 23:05 ` [dpdk-dev] [PATCH 0/4] minor fixes from BSD and clang testing Thomas Monjalon

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=1403123587-27433-4-git-send-email-bruce.richardson@intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).