#!/bin/bash
thisfile=`type -p $0`
case "$thisfile" in
  "") echo "installation error - can't find path to $0"; exit -1 ;;
  /*) ;;
  *) thisfile="$PWD/$thisfile"  ;;
esac         
while test -L "$thisfile"; do thisfile=$(readlink -f "$thisfile"); done
DOMTERM_DIR=`echo $(dirname $thisfile) | sed -e 's|/bin$||'`
if test -n "$JAVA_HOME"; then
    JAVA="${JAVA_HOME}/bin/java"
else
    JAVA=${JAVA-java}
fi
stty -F /dev/tty -echo
$JAVA -cp "$DOMTERM_DIR/share/domterm/domterm.jar" org.domterm.util.StyleSheets "$@"
stty -F /dev/tty echo
