#!/bin/sh
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# isaexec.sh  1.1   04/06/18

PROGDIR=`dirname $0`
PROGNAME=`basename $0`

for arch in `isalist` ; do
	DIR=${PROGDIR}/${arch}
	BIN=${DIR}/${PROGNAME}
	if [ -x ${BIN} ] ; then
		exec ${BIN} "$@"
	fi
done

echo "Error finding ${PROGNAME} binary compatible with this system's architecture"
exit 1
