1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-15 15:57:13 +00:00
Interlisp.maiko/bin/osversion
Nick Briggs 731c5de8da Update config.guess to modern version which recognizes x86_64 architecture for Darwin (MacOS)
Update osversion script to recognize x86_64 triples for Darwin as Darwin
Update machinetype script to return 386 for MacOS El Capitan (10.11), x86_64 for other versions
Add makefile-darwin.x86_64-x for compiling in 64-bit mode on later MacOS versions

	modified:   config.guess
	modified:   machinetype
	new file:   makefile-darwin.x86_64-x
	modified:   osversion
2020-08-17 14:14:17 -07:00

23 lines
533 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 ;;
*-apple-darwin*) echo darwin ;;
*-*-linux*) echo linux ;;
*-*-openbsd*) echo openbsd ;;
*-*-freebsd*) echo freebsd ;;
esac
### Don't leave the variables set.
unset os