From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] Tweak MAINTAINERS to use SED/TR
Date: Mon, 13 May 2002 12:11:00 -0000 [thread overview]
Message-ID: <20020513191155.GA604@nevyn.them.org> (raw)
In-Reply-To: <3CE00F4A.1000508@cygnus.com>
On Mon, May 13, 2002 at 03:08:58PM -0400, Andrew Cagney wrote:
> 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
> 2002-05-13 Andrew Cagney <ac131313@redhat.com>
>
> * 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:
Bourne, I think.
> - 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
> +'
Doesn't work for hppa1.1-hp-proelf; outputs
hppa1.1-hp-proelf broken
>
> -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.
What's arc-elf doing here?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-05-13 19:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-13 12:08 Andrew Cagney
2002-05-13 12:11 ` Daniel Jacobowitz [this message]
2002-05-13 14:03 ` Andrew Cagney
2002-05-13 14:08 ` Daniel Jacobowitz
2002-05-28 8:28 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020513191155.GA604@nevyn.them.org \
--to=drow@mvista.com \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox