config-list.mk: Extract target name correctly
commit04a11c01de8e1480ef155329062e78d5c915f943
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Mon, 5 Jan 2015 19:28:47 +0000 (5 19:28 +0000)
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>
Mon, 5 Jan 2015 19:28:47 +0000 (5 19:28 +0000)
tree872ac16f79a63faeb112f5757a50eca3f85c3001
parent73b44fa4a4736f47928ec9ce919afb451ed81803
config-list.mk: Extract target name correctly

With my last change, `sed' is used to cut out the target name from a listed
target. Since there may be additional OPTions encoded in the "target", I tried
to get only the first submatch before an `OPT'. However, `sed' uses longest
match, so I'm re-writing this using awk.

  If anybody is like using `gawk' or anything different, please feel free to
drop another patch. Since this is usually called by hand or by robots under
review, I don't see much of a problem here.

2015-01-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

contrib/
       * config-list.mk: Use shortest match for OPT to find the actual
       target name.

From-SVN: r219196
contrib/ChangeLog
contrib/config-list.mk