First Commit
[librecmc/package-feed.git] / utils / pciutils / patches / 105-fix-host.patch
1 --- a/lib/configure
2 +++ b/lib/configure
3 @@ -44,7 +44,7 @@ if [ -z "$HOST" ] ; then
4  fi
5  [ -n "$RELEASE" ] && rel="${RELEASE}"
6  # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless.
7 -host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\2/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
8 +host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
9  cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10  sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11  echo " $host $rel $cpu $sys"