#!/bin/sh
## Both work, but the former is sufficient.

PROG=`basename $0` 
ARCH=i386

if [ -x /usr/local/${ARCH}-next-nextstep3/bin/${PROG}.nextstep3 ]; then
 exec /usr/local/${ARCH}-next-nextstep3/bin/${PROG}.nextstep3 -arch ${ARCH} $@
elif [ -x /bin/${PROG} ]; then
 exec /bin/${PROG} -arch ${ARCH} $@
else
 echo "Error: Cannot find ${PROG}."
 echo
 echo "Either install NEXTSTEP 3.3 DeveloperTools or install a NEXTSTEP 3.x"
 echo "compatible ${PROG} to /usr/local/${ARCH}-next-nextstep3/bin/${PROG}.nextstep3".
fi

