Re: [patch/rfc] Tweak MAINTAINERS to use SED/TR

Andrew Cagney
2002-05-28T15:17:57Z

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

> 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

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1790 bytes --]

2002-05-28 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.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.