File:  [EPICS Repository] / startup / HostArch
Revision 1.2: download - view: text, annotated - select for diffs
Thu Oct 12 20:53:52 1995 UTC (22 years, 2 months ago) by jpq
Branches: MAIN
CVS tags: epics_R3_13_1_1, epics_R3_13_1, epics_R3_13_0_beta9, epics_R3_13_0_beta8, epics_R3_13_0_beta6, epics_R3_13_0_beta5, epics_R3_13_0_beta4, epics_R3_13_0_beta3, epics_R3_13_0_beta2, epics_R3_13_0_beta12_branch, epics_R3_13_0_beta12, epics_R3_13_0_beta11, epics_R3_13_0_beta10, epics_R3_13_0_beta1, epics_R3_13_0_alpha5, epics_R3_13_0_alpha4, epics_R3_13_0_2, epics_R3_12_2_patches, epics_R3_12_2_patch_6, epics_R3_12_2_2, epics_R3_12_2_1, epics_R3_12_2, epics_R3_12_1_4, R3-13-6, R3-13-5, HEAD
*** empty log message ***

#!/bin/sh
#
# base/bin/tools/HostArch - returns the Epics host architecture suitable
#                           for assigning to the HOST_ARCH variable

sysname=`uname`

case $sysname in
    Linux )
        echo Linux
        ;;
    HP-UX )
        echo hp700
        ;;
    OSF1 )
        echo alpha
        ;;
    SunOS )
        version=`uname -r | sed '1s/^\([0-9]*\).*$/\1/'`
        if [ ${version} -ge 5 ]; then
            echo solaris
        else
            echo sun4
        fi
        ;;
    * )
        echo unsupported
        ;;
esac


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>