config-list.mk: Extract target name correctly
commited3d22cc9abdf472519ad329a60a86e838d52232
authorjbglaw <jbglaw@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jan 2015 19:28:47 +0000 (5 19:28 +0000)
committerjbglaw <jbglaw@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jan 2015 19:28:47 +0000 (5 19:28 +0000)
tree872ac16f79a63faeb112f5757a50eca3f85c3001
parent8dd9da4894ca24f5613cd019dbf8094db2281422
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219196 138bc75d-0d04-0410-961f-82ee72b054a4
contrib/ChangeLog
contrib/config-list.mk