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 540451F5 for ; Fri, 28 Nov 2014 16:49:56 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 28 Nov 2014 07:49:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,477,1413270000"; d="scan'208";a="615535815" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.19]) by orsmga001.jf.intel.com with SMTP; 28 Nov 2014 07:49:53 -0800 Received: by (sSMTP sendmail emulation); Fri, 28 Nov 2014 15:49:52 +0025 Date: Fri, 28 Nov 2014 15:49:52 +0000 From: Bruce Richardson To: David Marchand Message-ID: <20141128154952.GA4556@bricha3-MOBL3> References: <1417189364-23969-1-git-send-email-david.marchand@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1417189364-23969-1-git-send-email-david.marchand@6wind.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] scripts: fix newline character in sed expression 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: Fri, 28 Nov 2014 15:49:56 -0000 On Fri, Nov 28, 2014 at 04:42:44PM +0100, David Marchand wrote: > Use of \n in sed expression is not portable and triggered an invalid > configuration on BSD (at least). > Replace with an explicit newline. > > Reported-by: Bruce Richardson > Signed-off-by: David Marchand Acked-by: Bruce Richardson > --- > scripts/gen-config-h.sh | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/scripts/gen-config-h.sh b/scripts/gen-config-h.sh > index 2fac08c..d36efd6 100755 > --- a/scripts/gen-config-h.sh > +++ b/scripts/gen-config-h.sh > @@ -35,9 +35,11 @@ echo "#ifndef __RTE_CONFIG_H" > echo "#define __RTE_CONFIG_H" > grep CONFIG_ $1 | > grep -v '^[ \t]*#' | > -sed 's,CONFIG_\(.*\)=y.*$,#undef \1\n#define \1 1,' | > +sed 's,CONFIG_\(.*\)=y.*$,#undef \1\ > +#define \1 1,' | > sed 's,CONFIG_\(.*\)=n.*$,#undef \1,' | > -sed 's,CONFIG_\(.*\)=\(.*\)$,#undef \1\n#define \1 \2,' | > +sed 's,CONFIG_\(.*\)=\(.*\)$,#undef \1\ > +#define \1 \2,' | > sed 's,\# CONFIG_\(.*\) is not set$,#undef \1,' > echo "#endif /* __RTE_CONFIG_H */" > > -- > 1.7.10.4 >