From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21810 invoked by alias); 28 May 2002 15:17:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21772 invoked from network); 28 May 2002 15:17:51 -0000 Received: from unknown (HELO localhost.redhat.com) (66.31.105.161) by sources.redhat.com with SMTP; 28 May 2002 15:17:51 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id A47773CBF; Tue, 28 May 2002 11:18:03 -0400 (EDT) Message-ID: <3CF39FAB.4010009@cygnus.com> Date: Tue, 28 May 2002 08:28:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc2) Gecko/20020518 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Tweak MAINTAINERS to use SED/TR References: <3CE00F4A.1000508@cygnus.com> <20020513191155.GA604@nevyn.them.org> <3CE02A39.9080900@cygnus.com> <20020513210827.GA13128@nevyn.them.org> Content-Type: multipart/mixed; boundary="------------000506030601060300070607" X-SW-Source: 2002-05/txt/msg00964.txt.bz2 This is a multi-part message in MIME format. --------------000506030601060300070607 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 305 > On Mon, May 13, 2002 at 05:03:53PM -0400, Andrew Cagney wrote: > >> > > >> >>-The GAWK segment: >> >>+The bourn shell script: > >> > >> > >> >Bourne, I think. > >> >> Ta. > > > As for the rest, I see what you meant to do now. Looks good. Ok, for reference, this is what I checked in: Andrew --------------000506030601060300070607 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1790 2002-05-28 Andrew Cagney * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use `tr' and `sed'. Mention that `broken' targets are not expected to build. Index: MAINTAINERS =================================================================== RCS file: /cvs/src/src/gdb/MAINTAINERS,v retrieving revision 1.177 diff -p -r1.177 MAINTAINERS *** MAINTAINERS 27 May 2002 01:13:12 -0000 1.177 --- MAINTAINERS 28 May 2002 14:58:24 -0000 *************** All recognized developers can make mecha *** 190,210 **** the obvious fix rule) to ``maintenance only'' targets. The change shall be sanity checked by compiling with one of the listed targets. ! The GAWK segment: ! awk < "${maintainers}" ' ! $2 ~ /--target=.*/ { ! targets = gensub (/^.*--target=/, "", 1, $2) ! warnings = gensub (/[)]*$/, "", 1, $3) ! split (targets, targ, /,/) ! for (i in targ) { ! print targ[i], warnings ! } ! }' ! can be used to generate a full list of --target= ! --enable-gdb-build-warnings= pairs. Host/Native: --- 190,225 ---- the obvious fix rule) to ``maintenance only'' targets. The change shall be sanity checked by compiling with one of the listed targets. ! The Bourne shell script: ! cat MAINTAINERS | tr -s '[\t]' '[ ]' | sed -n ' ! /^[ ]*[-a-z0-9\.]*[ ]*[(]*--target=.*/ !d ! s/^.*--target=// ! s/).*$// ! h ! :loop ! g ! /^[^ ]*,/ !b end ! s/,[^ ]*// ! p ! g ! s/^[^,]*,// ! h ! b loop ! :end ! p ! ' ! can be used to generate a complete list of --target= ! --enable-gdb-build-warnings= pairs of the form: + arc-elf ,-Werror + ... + hppa1.1-hp-proelf broken + ... + + While the ``broken'' targets are included in the listing, the are not + expected to build. Host/Native: --------------000506030601060300070607--