source: latest/src/guess_os.sh @ 1

Last change on this file since 1 was 1, checked in by buchmann, 17 years ago

Initial import from CVS repository

File size: 416 bytes
Line 
1#!/bin/sh
2
3# --------------------------------------------------------------------
4# Function  :  `guess_os()'.
5
6 guess_os ()
7 {
8   case "`uname -sr`" in
9     Linux*2.4.9*)  echo "Linux.RH71";;
10     Linux*FC2*)    echo "Linux.FC2";;
11     Linux*EL*)     echo "Linux.SLA4x";;
12     SunOS\ 5*)     echo "Solaris";;
13     Darwin*)       echo "Darwin";;
14     *)             echo "`uname -sr`";;
15   esac
16 }
17
18
19echo `guess_os`
Note: See TracBrowser for help on using the repository browser.