From patchwork Thu Oct 16 18:54:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Masker X-Patchwork-Id: 400351 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 25821140088 for ; Fri, 17 Oct 2014 05:54:33 +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:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; q=dns; s=default; b=m1 NCn8CaHQb+Nnb6nWajLaw5lWkpn/1bcVohdh4gEHWxUK7Hbl7ZfFVWYU5q5w1rv5 lUbAiAL0PZuMAn/4r25cgjYmqdLAu86R0et6BhKP0sa4Rs9/XhhVchT/AyVE5L8n 4XNQhY6/0yAiFbLiX/wfIqs8DbYquWZLJDTadbLOo= 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:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; s=default; bh=xiMsQ/WM C21JqZzSFhtfE8EDP3E=; b=qD8QBUzoFImpU8yexVKYNH4fcsncd0yE8JjhUPs2 EgnVfSckWPj5112uwZXvVdbvdk11gNudh0orxr9a3aSDPPUdiHg6xitBZYtqFchp oWeZPj6dAF+FbtcMCNdb15TGjRInGXWVd5iQp8xDddBDsPA//uMJiGEW1MyL/dAY X4g= Received: (qmail 18483 invoked by alias); 16 Oct 2014 18:54:26 -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 18469 invoked by uid 89); 16 Oct 2014 18:54:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f178.google.com Received: from mail-ie0-f178.google.com (HELO mail-ie0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 16 Oct 2014 18:54:24 +0000 Received: by mail-ie0-f178.google.com with SMTP id rl12so4076766iec.37 for ; Thu, 16 Oct 2014 11:54:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; bh=YJkVeLOhMWDtrLG/y01vJZLwPvhtkxRusGLWl3D+Yt0=; b=aqxnNtajK4511hmbn/cJrXyCbNpw+uxJ9tT6fkwmnqFjYF0r4UmQrWMqNGrPrMXmEF flhOe6m2DmoYqG8+TLTzn2jgTiR2vVZBbC2mycyUJbX33yovYxv9j0ivYf/qlLXoK3XA P5rVHe/TajWkB2enZS4zUZLf953SL/vh3CkcTjAxpBDeSfHHaJkVod0RGWw30emBYw6e XdN1DI+9dMsB+Zo9a7vocg+X6E/lGp/h6P6snIOThDDPYKzhUt0hqvgI+hg7rPCguuMJ Ia0+UKlJn/r1aZNOmeGEhAYIXLPSin4vO73wUMu281bZhoHa82in0wD8zcHKMnhmT/Ay e38g== X-Gm-Message-State: ALoCoQnTs6RxVra+78lYtKSeOnHnXkqhOKUtRWh9XQN4R4OGuXYc3lzPx7k+fPJgQwdCWQdISYyM X-Received: by 10.42.23.136 with SMTP id s8mr3745995icb.80.1413485662220; Thu, 16 Oct 2014 11:54:22 -0700 (PDT) Received: from [172.16.17.7] (c-68-61-234-196.hsd1.mi.comcast.net. [68.61.234.196]) by mx.google.com with ESMTPSA id ci9sm14766579igb.17.2014.10.16.11.54.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Oct 2014 11:54:21 -0700 (PDT) From: Jason Masker Subject: Re: [PATCH] [RESEND] scripts/crosstool-NG.sh.in: patch regex to work with BSD grep Message-Id: <6C4F62BD-5A82-4CCA-8707-494177301276@masker.net> Date: Thu, 16 Oct 2014 14:54:19 -0400 To: crossgcc@sourceware.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Patch to make regex BSD grep compatible. Final resend before giving up. Mail client keeps stripping tabs. 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"