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: