mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
49 lines
757 B
Bash
Executable File
49 lines
757 B
Bash
Executable File
#!/bin/sh
|
|
|
|
UNAME=`uname -s`
|
|
|
|
# OS tweaks
|
|
|
|
if [ "$UNAME" = "SunOS" ]; then
|
|
UNAME=`uname -sr | sed -e 's/ /-/g'`
|
|
if [ "$UNAME" = "SunOS-4.1.3_U1" ]; then
|
|
UNAME=SUNOS4
|
|
else
|
|
PROCESSOR=`uname -p`
|
|
if [ "$PROCESSOR" = "i386" ]; then
|
|
UNAME=SOLARISx86
|
|
else
|
|
UNAME=SOLARIS
|
|
fi
|
|
fi
|
|
|
|
elif [ "$UNAME" = "HP-UX" ]; then
|
|
UNAME=HPUX
|
|
|
|
elif [ "$UNAME" = "BSD/386" ]; then
|
|
UNAME=BSDI
|
|
|
|
elif [ "$UNAME" = "SCO_SV" ]; then
|
|
UNAME=SCO
|
|
|
|
elif [ "$UNAME" = "UNIX_SV" ]; then
|
|
UNAME=UNIXWARE
|
|
|
|
elif [ "$UNAME" = "NEWS-OS" ]; then
|
|
UNAME=SONY
|
|
|
|
elif [ "$UNAME" = "3430-001" ]; then
|
|
UNAME=NCRSVR4
|
|
|
|
elif [ "$UNAME" = "UNIX_System_V" ]; then
|
|
UNAME=NECSVR4
|
|
fi
|
|
|
|
case "$UNAME" in
|
|
SINIX*|ReliantUNIX*)
|
|
UNAME="ReliantUNIX" ;;
|
|
esac
|
|
|
|
|
|
echo $UNAME
|