3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2002-03-20' |
timestamp='2002-05-29' |
7 |
|
|
8 |
# This file is free software; you can redistribute it and/or modify it |
# This file is free software; you can redistribute it and/or modify it |
9 |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
142 |
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
143 |
/usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
/usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
144 |
case "${UNAME_MACHINE_ARCH}" in |
case "${UNAME_MACHINE_ARCH}" in |
145 |
|
armeb) machine=armeb-unknown ;; |
146 |
arm*) machine=arm-unknown ;; |
arm*) machine=arm-unknown ;; |
147 |
sh3el) machine=shl-unknown ;; |
sh3el) machine=shl-unknown ;; |
148 |
sh3eb) machine=sh-unknown ;; |
sh3eb) machine=sh-unknown ;; |
429 |
Motorola:PowerMAX_OS:*:*) |
Motorola:PowerMAX_OS:*:*) |
430 |
echo powerpc-motorola-powermax |
echo powerpc-motorola-powermax |
431 |
exit 0 ;; |
exit 0 ;; |
432 |
|
Night_Hawk:*:*:PowerMAX_OS) |
433 |
|
echo powerpc-harris-powermax |
434 |
|
exit 0 ;; |
435 |
Night_Hawk:Power_UNIX:*:*) |
Night_Hawk:Power_UNIX:*:*) |
436 |
echo powerpc-harris-powerunix |
echo powerpc-harris-powerunix |
437 |
exit 0 ;; |
exit 0 ;; |
921 |
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
922 |
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
923 |
elif /bin/uname -X 2>/dev/null >/dev/null ; then |
elif /bin/uname -X 2>/dev/null >/dev/null ; then |
924 |
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` |
UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
925 |
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 |
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
926 |
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ |
(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ |
927 |
&& UNAME_MACHINE=i586 |
&& UNAME_MACHINE=i586 |
928 |
(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ |
(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ |
929 |
&& UNAME_MACHINE=i686 |
&& UNAME_MACHINE=i686 |
930 |
(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ |
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
931 |
&& UNAME_MACHINE=i686 |
&& UNAME_MACHINE=i686 |
932 |
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
933 |
else |
else |
962 |
exit 0 ;; |
exit 0 ;; |
963 |
M68*:*:R3V[567]*:*) |
M68*:*:R3V[567]*:*) |
964 |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
965 |
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) |
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) |
966 |
OS_REL='' |
OS_REL='' |
967 |
test -r /etc/.relid \ |
test -r /etc/.relid \ |
968 |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |