Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 67118 | Differences between
and this patch

Collapse All | Expand All

(-)msrc0-0.6.orig/makeme (-2 / +7 lines)
Lines 25-31 Link Here
25
if [ -z "$SHORTHOST" ] ; then
25
if [ -z "$SHORTHOST" ] ; then
26
	SHORTHOST=`expr $HOST : '\([^.]*\)\..*' \| $HOST`
26
	SHORTHOST=`expr $HOST : '\([^.]*\)\..*' \| $HOST`
27
fi
27
fi
28
if [ -z "$HOSTTYPE" ] ; then
28
if [ -n "$BASH_VERSION" -o -z "$HOSTTYPE" ] ; then
29
	case `uname -sr || uname -a` in
29
	case `uname -sr || uname -a` in
30
	HP-UX*7.*)
30
	HP-UX*7.*)
31
		HOSTTYPE="HPUX9" ;;
31
		HOSTTYPE="HPUX9" ;;
Lines 51-57 Link Here
51
	esac
51
	esac
52
fi
52
fi
53
if [ -z "$HOSTOS" ] ; then
53
if [ -z "$HOSTOS" ] ; then
54
	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*//'`
54
        case "$HOSTTYPE" in
55
        LINUX )
56
                HOSTOS=`uname -r | sed -e 's/\.\([0-9]*\)\..*/0\1/'`;;
57
        * )
58
                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*//'`;;
59
        esac
55
fi
60
fi
56
61
57
# Now fake the Distrib @file@ expansion and hope the rest works out.
62
# Now fake the Distrib @file@ expansion and hope the rest works out.

Return to bug 67118