From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23201 invoked by alias); 14 Oct 2014 06:44:54 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 23190 invoked by uid 89); 14 Oct 2014 06:44:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 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; Tue, 14 Oct 2014 06:44:52 +0000 Received: by mail-oi0-f52.google.com with SMTP id a3so15494502oib.39 for ; Mon, 13 Oct 2014 23:44:50 -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:sender:from:date:message-id:subject :to:content-type; bh=1gL+URKB0/LDoz00uucSEleU296fEX10u+Lvf2ISvZ0=; b=ein/4PzUZ+QAwWXRKrVi3Rs+2za9GiRrSiKgVngFKkHOdGQzJu53Svp4QsQrc4in4P CZZmN1qO8wO4RQGMvcuNDHZ1dti6XcKSzC8c5QPcIQCvI4AqoEq1pOpwgJJ+Pfz6VB1V oyOY6fwgx7lVjSREz4h57H8l88slEuRjYU1NWfKSxP5up1JhqhJD8bGYg6QAWuFISMHP 3bOE7LQoDQSp1okiq/Cz5gzlxUrHhK5W66SfrSGLm1Ch64Qq2ecrxNalhYXkOA6ym+TS b1nvMhYNTjIhyolToCkoDabWG5mg9CLPDEyBES1O46uxPLUvmkqfa+Ln1hGPoi3AA+Hn KQBQ== X-Gm-Message-State: ALoCoQn6VMkpDpHYRGosH8i6+2iCoqq1Drlpl8B6HYdcqZQwG2PuPiPMSEohPkC8XZCcgHEERcPX X-Received: by 10.202.68.197 with SMTP id r188mr2818103oia.3.1413269090165; Mon, 13 Oct 2014 23:44:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.62.12 with HTTP; Mon, 13 Oct 2014 23:44:29 -0700 (PDT) From: "Jason T. Masker" Date: Tue, 14 Oct 2014 06:44:00 -0000 Message-ID: Subject: scripts/crosstool-NG.sh.in: patch regex to work with BSD grep To: crossgcc Content-Type: multipart/mixed; boundary=001a113dd878178c0105055c5a61 X-SW-Source: 2014-10/txt/msg00011.txt.bz2 --001a113dd878178c0105055c5a61 Content-Type: text/plain; charset=UTF-8 Content-length: 906 BSD grep does not interpret a null alteration. It complains about an empty sub-expression, e.g.: $ grep --version && grep -E '^(# |)CT_' .config grep (BSD grep) 2.5.1-FreeBSD grep: empty (sub)expression This patch replaces the null alteration with a zero or once quantifier which works with both BSD & GNU grep. $ grep --version && grep -E '^(# )?CT_' .config grep (BSD grep) 2.5.1-FreeBSD CT_CONFIGURE_has_xz=y CT_CONFIGURE_has_svn=y ... $ ggrep --version && ggrep -E '^(# )?CT_' .config ggrep (GNU grep) 2.20 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and others, see . CT_CONFIGURE_has_xz=y CT_CONFIGURE_has_svn=y ... --001a113dd878178c0105055c5a61 Content-Type: application/octet-stream; name="crosstool-NG.sh.in-bsd-regex.patch" Content-Disposition: attachment; filename="crosstool-NG.sh.in-bsd-regex.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i18vwqdv0 Content-length: 830 ZGlmZiAtLWdpdCBhL3NjcmlwdHMvY3Jvc3N0b29sLU5HLnNoLmluIGIvc2Ny aXB0cy9jcm9zc3Rvb2wtTkcuc2guaW4KaW5kZXggY2Q2NWQ1Yi4uNTNhYzU1 MiAxMDA2NDQKLS0tIGEvc2NyaXB0cy9jcm9zc3Rvb2wtTkcuc2guaW4KKysr IGIvc2NyaXB0cy9jcm9zc3Rvb2wtTkcuc2guaW4KQEAgLTEyNSw3ICsxMjUs NyBAQCBDVF9Eb0xvZyBJTkZPICJCdWlsZCBzdGFydGVkICR7Q1RfU1RBUl9E QVRFX0hVTUFOfSIKICMgV2UgcmVhbGx5IG5lZWQgdG8gZXh0cmFjdCBmcm9t ICxjb25maWcgYW5kIG5vdCAuY29uZmlnLjIsIGFzIHdlCiAjIGRvIHdhbnQg dGhlIGtjb25maWcncyB2YWx1ZXMsIG5vdCBvdXIgbWFuZ2xlZCBjb25maWcg d2l0aCBhcnJheXMuCiBDVF9Eb1N0ZXAgREVCVUcgIkR1bXBpbmcgdXNlci1z dXBwbGllZCBjcm9zc3Rvb2wtTkcgY29uZmlndXJhdGlvbiIKLUNUX0RvRXhl Y0xvZyBERUJVRyAke2dyZXB9IC1FICdeKCMgfClDVF8nIC5jb25maWcKK0NU X0RvRXhlY0xvZyBERUJVRyAke2dyZXB9IC1FICdeKCMgKT9DVF8nIC5jb25m aWcKIENUX0VuZFN0ZXAKIAogQ1RfRG9Mb2cgREVCVUcgIlVuc2V0dGluZyBh bmQgdW5leHBvcnRpbmcgTUFLRUZMQUdTIgo= --001a113dd878178c0105055c5a61 Content-Type: text/plain; charset=us-ascii Content-length: 71 -- For unsubscribe information see http://sourceware.org/lists.html#faq --001a113dd878178c0105055c5a61--