* MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
authorAndrew Cagney <cagney@redhat.com>
Tue, 28 May 2002 15:16:34 +0000 (15:16 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 28 May 2002 15:16:34 +0000 (15:16 +0000)
`tr' and `sed'.  Mention that `broken' targets are not expected to
build.

gdb/ChangeLog
gdb/MAINTAINERS

index 286bee18f1ff8a28a9d288021a42ba32896cfa2f..ffbd7fa50cadfb7e6ca7f072eec90c89fc84756e 100644 (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>
 
        * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
index bc8d01dc335b501b998b6837e9dc6330a9fae804..8b80d417c6eb6d258db60c017535c73dfbeabb1a 100644 (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
 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.
-
+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.
 
 
 Host/Native: