1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-13 23:27:12 +00:00
Interlisp.maiko/bin/osversion
2017-05-23 15:40:42 -07:00

23 lines
536 B
Bash
Executable File

#!/bin/sh
# Location of the add-dir-to-var program
os=`./config.guess`
# o/s switch block
case "$os" in
sparc-sun-sunos*) echo sunos4 ;;
sparc-sun-solaris1*) echo sunos4 ;;
sparc-sun-solaris2*) echo sunos5 ;;
alpha-dec-osf1) echo osf1 ;;
i386-*-solaris*) echo sunos5 ;;
i386-apple-darwin*) echo darwin ;;
*-*-linux*) echo linux ;;
*-*-openbsd*) echo openbsd ;;
*-*-freebsd*) echo freebsd ;;
esac
### Don't leave the variables set.
unset os