#!/bin/csh -f
#
# the prototype for the main driver
#
# Parameters: none
#
# Thomas Gauweiler  22-Feb-93
#
# Changes:
#
# 22-feb-93	Created
#


#
# determine source architecture (what we're on)
# by examining return values of "uname"
#

set MACHINE=`uname -m`
set VERSION=`uname -v`

if ( "$MACHINE" =~ sun4* ) then		# sun
    set SRC_ARCH="SUN4"
else if ( "$MACHINE" =~ RISC ) then
    if ( "$VERSION" =~ *MP* ) then	# maspar frontend if ..
        set SRC_ARCH="MASP"   		# dec and version *MP*
    else
        set SRC_ARCH="DEC"		# else plain dec
    endif
else 					# dunno
    echo "Unknown source architecture $MACHINE ($VERSION)"
    exit 3
endif

#echo "Source architecture = $SRC_ARCH"

#echo msm/enumerate3 $1 $2 $3 $4 $5 $6 $7 $8 $9
bin/$SRC_ARCH/enumerate3.$SRC_ARCH $1 $2 $3 $4 $5 $6 $7 $8 $9
