aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rw-r--r--contrib/config-list.mk3
2 files changed, 6 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index f2d21db..58d80f0 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
+
+ * config-list.mk: Use shortest match for OPT to find the actual
+ target name.
+
2014-12-17 Sergio Durigan Junior <sergiodj@redhat.com>
* dg-extract-results.sh: Use --text with grep to avoid issues with
diff --git a/contrib/config-list.mk b/contrib/config-list.mk
index 16900e1..db2bad0 100644
--- a/contrib/config-list.mk
+++ b/contrib/config-list.mk
@@ -97,8 +97,7 @@ $(LIST): make-log-dir
-mkdir $@
( \
cd $@ && \
- echo $@ && \
- TGT=`echo $@ | sed -e 's/^\(.*\)OPT.*$$/\1/'` && \
+ TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \
TGT=`../../gcc/config.sub $$TGT` && \
case $$TGT in \
*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) \