From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22723 invoked by alias); 13 May 2002 19:08:55 -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 22711 invoked from network); 13 May 2002 19:08:53 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 13 May 2002 19:08:53 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 3C2873E13 for ; Mon, 13 May 2002 15:08:58 -0400 (EDT) Message-ID: <3CE00F4A.1000508@cygnus.com> Date: Mon, 13 May 2002 12:08:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc1) Gecko/20020429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch/rfc] Tweak MAINTAINERS to use SED/TR Content-Type: multipart/mixed; boundary="------------030207080104030801020502" X-SW-Source: 2002-05/txt/msg00485.txt.bz2 This is a multi-part message in MIME format. --------------030207080104030801020502 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 184 Hello, The attached hopefully addresses the problems Daniel encountered when trying to build all targets. I'll table it for a few days then, baring comments, commit. enjoy, Andrew --------------030207080104030801020502 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1462 2002-05-13 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.172 diff -u -r1.172 MAINTAINERS --- MAINTAINERS 11 May 2002 14:18:14 -0000 1.172 +++ MAINTAINERS 13 May 2002 18:38:50 -0000 @@ -192,21 +192,33 @@ 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: +The bourn shell script: - awk < "${maintainers}" ' - $2 ~ /--target=.*/ { - targets = gensub (/^.*--target=/, "", 1, $2) - warnings = gensub (/[)]*$/, "", 1, $3) - split (targets, targ, /,/) - for (i in targ) { - print targ[i], warnings - } - }' +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 full list of --target= ---enable-gdb-build-warnings= pairs. +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 + +The ``broken'' targets, while listed, are not expected to build. Host/Native: --------------030207080104030801020502--