From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 96F4A231C for ; Fri, 28 Nov 2014 16:42:59 +0100 (CET) Received: by mail-wg0-f51.google.com with SMTP id k14so9122603wgh.10 for ; Fri, 28 Nov 2014 07:42:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=q6AXV6ci10DIrWEGGz+YgzvB54Ei9/OZnKb4hp6A5+Q=; b=TpWz8h0xBwwsjfKy0SbeSzwv8ly/JsipeCHif7k0R4EH2nQvVov56iOZet6Emfw+8v b7dtmjN7F1mqEXz1m4PErl3zMv+zRirfUZFtyw9sX8Ze6TrBhCn+K/PoUa9Wsff14ud5 5Y0sfYrQRlQvR5GOnRCVh5CH2v7M8QQmR1+ym213uIPUahPbwf4Gt6gBD8ZUzi6bYNdO 7n9gcMcTfwi2WU89M7CSsU0GXC592j0q+Pui2fTp1eBJqs/uQVWooXq+GrTz+plZDhpe cxi5GbE3IYh2pZYTkXaLic3Fjv/2ermd4ec3MXe5hyxP4n/rFKl41yLo+uWFgkSdnJjO bKVQ== X-Gm-Message-State: ALoCoQmOaJC69X3dovEbDx1IGCp2Oq9cnEK02EKh/eTXPE1CIO7hjkjLg8gqfHtNwcVP5Bn0KHBP X-Received: by 10.194.174.40 with SMTP id bp8mr68690788wjc.104.1417189379425; Fri, 28 Nov 2014 07:42:59 -0800 (PST) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id dg7sm16351347wib.24.2014.11.28.07.42.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Nov 2014 07:42:58 -0800 (PST) From: David Marchand To: dev@dpdk.org Date: Fri, 28 Nov 2014 16:42:44 +0100 Message-Id: <1417189364-23969-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: Subject: [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:42:59 -0000 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 --- 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