diff options
author | Felix Janda <felix.janda@posteo.de> | 2015-04-12 09:16:28 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2015-09-14 17:47:08 +0200 |
commit | 3c93f3c698c1ff444384b37f90e942243c1a7bbb (patch) | |
tree | b3c5252657581b052080776414da493394014260 | |
parent | ef6c9ec3a45992d9e7ef4716d444252baf2013e1 (diff) | |
download | pciutils-3c93f3c698c1ff444384b37f90e942243c1a7bbb.tar.gz |
lib/configure: Also accept host tuples without vendor string
Based on patch from
https://bugs.gentoo.org/show_bug.cgi?id=425022
-rwxr-xr-x | lib/configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/configure b/lib/configure index 3783f57..7d4cec8 100755 --- a/lib/configure +++ b/lib/configure @@ -44,7 +44,7 @@ if [ -z "$HOST" ] ; then fi [ -n "$RELEASE" ] && rel="${RELEASE}" # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless. -host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'` +host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\2/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'` cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo " $host $rel $cpu $sys" |