#!/bin/sh

# mach=`machtype`

if [ "$COLOR" ]; then xrdb -merge /mit/bert/.conf/app/Mosaic.colors; fi

if [ -f /afs/sipb/project/outland/bin/Mosaic-BETA ]; then
  echo "running beta..."
  exec /afs/sipb/project/outland/bin/Mosaic-BETA "$@"
elif [ -f /afs/sipb/project/outland/bin/Mosaic ]; then
  echo "running from outland..."
  exec /afs/sipb/project/outland/bin/Mosaic "$@"
elif [ -f /afs/sipb/project/sipb/bin/Mosaic ]; then
  echo "running from sipb/bin..."
  exec /afs/sipb/project/sipb/bin/Mosaic "$@"
else
  echo "Nothing found."
fi
