From patchwork Thu Oct 16 18:29:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Masker X-Patchwork-Id: 400348 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6FF8C1400DD for ; Fri, 17 Oct 2014 05:29:53 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=rjrp+bT zs3rorc1CecSE6S46jpTI+ETktLaNCR9wDYfFTT84knHh/80kyBC1RgpjZtaK0E2 9P0tYRxSt1jOqbYGkjKz0SPv6upDK1em7w8cKH4JJa+Ub2Xs3irS8L/GFFSoNqNX cgVrym9RV9O1IW470pO67G4lypslny+XFdBE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=e/J4TG2SySFsY cELRgb9Ns9WTmI=; b=xC7dma6Jp7zWEGVYGAlK5hbJ12fAxr5JBT/8RsRUbeybv Cw5s+BI9VIvnLLiqgucx8Bk9FWGe+s9P5Be24H4q4bQ7V78fJNGtbesT2LQ6re6D K/g/WR+kwDuzo1VngV6QjzLu1SgURX71k49CC/+wqt5e5m+CjBSUwt8JiCcPY8= Received: (qmail 19609 invoked by alias); 16 Oct 2014 18:29:32 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 19521 invoked by uid 89); 16 Oct 2014 18:29:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f52.google.com Received: from mail-oi0-f52.google.com (HELO mail-oi0-f52.google.com) (209.85.218.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 16 Oct 2014 18:29:29 +0000 Received: by mail-oi0-f52.google.com with SMTP id a3so3082690oib.25 for ; Thu, 16 Oct 2014 11:29:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=j1qf8Bm8oe98LM3Urug4cpLpUOgvqk9nCkXkOl0ER3I=; b=ZOMjuumr33uJC+0oqZUMbT80f1qsIBOpkb2Oqy2skp5xxyNp0NRBsLCRZc4jJznUAV 0SvNqDIcpv0xXTSY3ofUDZtZN7eI4MHiYs714Kj1Yn81x+b0MomWLsVg6U/Mrxcufb0/ gahp/ezu7oFfLBea9xDOdQI8cpFOJ+iKkPpsLyk4ATRH3QJ3SraQjyyCMk4y5zZurPYc Fxuvo2aDOR+rvahyM35BX4sqje/xWahHJHeGwyfKZK1CcPCFAEjnmimSF3kJAanUZnLB eD18/LLuW1ZxI/w57RHlgETJibAByIWo03GvUv9LfD/v6IfdbiNfKVEXB184bUG8+zro oItQ== X-Gm-Message-State: ALoCoQnT/SFrTh1tLoRnwXK+oRGrWyzZacsgZXfIGrVZIbxgavB2jYsQdTYFF9zWyNL8UfWscwSW X-Received: by 10.182.2.43 with SMTP id 11mr2469535obr.50.1413484167934; Thu, 16 Oct 2014 11:29:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.62.12 with HTTP; Thu, 16 Oct 2014 11:29:07 -0700 (PDT) In-Reply-To: References: From: "Jason T. Masker" Date: Thu, 16 Oct 2014 14:29:07 -0400 Message-ID: Subject: Re: [PATCH] [RESEND] scripts/crosstool-NG.sh.in: patch regex to work with BSD grep To: crossgcc Patch to make regex BSD grep compatible. Updated to fix formatting error in patch. Signed-off-by: Jason Masker --- For unsubscribe information see http://sourceware.org/lists.html#faq diff --git a/kconfig/kconfig.mk b/kconfig/kconfig.mk index cb9f91c..06e022c 100644 --- a/kconfig/kconfig.mk +++ b/kconfig/kconfig.mk @@ -38,7 +38,7 @@ defconfig: # Always be silent, the stdout an be >.config extractconfig: @$(awk) 'BEGIN { dump=0; } \ - dump==1 && $$0~/^\[.....\][[:space:]]+(# |)CT_/ { \ + dump==1 && $$0~/^\[.....\][[:space:]]+(# )?CT_/ { \ $$1=""; \ gsub("^[[:space:]]",""); \ print; \ diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index cd65d5b..53ac552 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -125,7 +125,7 @@ CT_DoLog INFO "Build started ${CT_STAR_DATE_HUMAN}" # We really need to extract from ,config and not .config.2, as we # do want the kconfig's values, not our mangled config with arrays. CT_DoStep DEBUG "Dumping user-supplied crosstool-NG configuration" -CT_DoExecLog DEBUG ${grep} -E '^(# |)CT_' .config +CT_DoExecLog DEBUG ${grep} -E '^(# )?CT_' .config CT_EndStep CT_DoLog DEBUG "Unsetting and unexporting MAKEFLAGS"