#!/bin/sh
#  Copyright (c) 1989-1996 Adobe Systems, Incorporated. All rights reserved.
#
# fmarch - Determine the machine type and architecture.
# Use Caution! The behavior of uname -a is not explicitly specified
#   and may return significantly different information for different
#   os versions.

case $# in
0)
	;;
*)
	echo 'Usage: fmarch
''   Returns an architecture ID for the host machine.
''   Used by Frame product scripts to determine which binary to run.' >&2
	exit 1
	;;
esac

[ -f /bin/uname ] && {
	case `/bin/uname -a` in
	SunOS* )
		case `/bin/uname -r` in
		4*)
			echo sunxm.os.sparc
			exit 0
			;;
		5*)
			echo sunxm.s5.sparc
			exit 0
			;;
		esac
	        ;;
	HP*9000/[78]*)
		echo hp.hpux.pa
		exit 0
		;;
	HP*9000/[34]*)
		echo hp.hpux.m68k
		exit 0
		;;
	AIX*)
		echo ibm.aix.pwr
		exit 0
		;;
	IRIX*)
		echo sgi.irix.mips
		exit 0
		;;
	OSF1*' 'alpha)
		echo dec.osf.alpha
		exit 0
		;;
	esac
}

# Nope.
echo unknown
exit 1
