From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9847A2A7 for ; Wed, 18 Jun 2014 22:33:39 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 18 Jun 2014 13:33:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,502,1400050800"; d="scan'208";a="530633643" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 18 Jun 2014 13:33:31 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s5IKXVZq013838; Wed, 18 Jun 2014 21:33:31 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s5IKXVgr027782; Wed, 18 Jun 2014 21:33:31 +0100 Received: (from bricha3@localhost) by sivswdev02.ir.intel.com with id s5IKXVjK027778; Wed, 18 Jun 2014 21:33:31 +0100 From: Bruce Richardson To: dev@dpdk.org Date: Wed, 18 Jun 2014 21:33:06 +0100 Message-Id: <1403123587-27433-4-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1403123587-27433-1-git-send-email-bruce.richardson@intel.com> References: <1403123587-27433-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 3/4] scripts: fix filtering of comments on bsd X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2014 20:33:40 -0000 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 --- 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