#!/bin/sh
#
# Wrapper for ml-ulex heap image
#

mlulexdir=$0
scripthome=${mlulexdir%ml-ulex}

case `uname -s` in
  Darwin) heap=${scripthome}ml-ulex.ppc-darwin ;;
  *) heap=${scripthome}ml-ulex.x86-linux ;;
esac

if test ! -r $heap ; then
  echo "ml-ulex: no heap image!"
  exit 1
fi

exec sml @SMLload=$heap $@

