--- msrc0-0.6.orig/makeme 2005-05-03 15:34:06.438998122 -0500 +++ msrc0-0.6.orig/makeme 2005-05-03 15:40:24.669502560 -0500 @@ -25,7 +25,7 @@ if [ -z "$SHORTHOST" ] ; then SHORTHOST=`expr $HOST : '\([^.]*\)\..*' \| $HOST` fi -if [ -z "$HOSTTYPE" ] ; then +if [ -n "$BASH_VERSION" -o -z "$HOSTTYPE" ] ; then case `uname -sr || uname -a` in HP-UX*7.*) HOSTTYPE="HPUX9" ;; @@ -51,7 +51,12 @@ esac fi if [ -z "$HOSTOS" ] ; then - HOSTOS=`uname -r | sed -e 's/^[A-Za-z .]*//' -e 's/-[A-Za-z]*//' -e 's/\.\([0-9][0-9]\)/\1/g' -e 'y/./0/' -e 's/^0*//'` + case "$HOSTTYPE" in + LINUX ) + HOSTOS=`uname -r | sed -e 's/\.\([0-9]*\)\..*/0\1/'`;; + * ) + HOSTOS=`uname -r | sed -e 's/^[A-Za-z .]*//' -e 's/-[A-Za-z]*//' -e 's/\.\([0-9][0-9]\)/\1/g' -e 'y/./0/' -e 's/^0*//'`;; + esac fi # Now fake the Distrib @file@ expansion and hope the rest works out.