* MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use

`tr' and `sed'.  Mention that `broken' targets are not expected to
build.
This commit is contained in:
Andrew Cagney 2002-05-28 15:16:34 +00:00
parent 5221660204
commit 697f244d5b
2 changed files with 33 additions and 12 deletions

View File

@ -1,3 +1,9 @@
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.
2002-05-27 Michal Ludvig <mludvig@suse.cz> 2002-05-27 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note. * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.

View File

@ -190,21 +190,36 @@ All recognized developers can make mechanical changes (by virtue of
the obvious fix rule) to ``maintenance only'' targets. The change the obvious fix rule) to ``maintenance only'' targets. The change
shall be sanity checked by compiling with one of the listed targets. shall be sanity checked by compiling with one of the listed targets.
The GAWK segment: The Bourne shell script:
awk < "${maintainers}" ' cat MAINTAINERS | tr -s '[\t]' '[ ]' | sed -n '
$2 ~ /--target=.*/ { /^[ ]*[-a-z0-9\.]*[ ]*[(]*--target=.*/ !d
targets = gensub (/^.*--target=/, "", 1, $2) s/^.*--target=//
warnings = gensub (/[)]*$/, "", 1, $3) s/).*$//
split (targets, targ, /,/) h
for (i in targ) { :loop
print targ[i], warnings g
} /^[^ ]*,/ !b end
}' s/,[^ ]*//
p
g
s/^[^,]*,//
h
b loop
:end
p
'
can be used to generate a full list of --target= can be used to generate a complete list of --target=
--enable-gdb-build-warnings= pairs. --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: Host/Native: