105-fix-host.patch 682 B

1234567891011
  1. --- a/lib/configure
  2. +++ b/lib/configure
  3. @@ -39,7 +39,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"