#!/bin/sh
#
# Front end to the runtime & compile time scripts.
#

if hash wish >/dev/null 2>&1; then
  if [ "lerpc:0.0" != "" ]; then
    echo "
*** NOTE: setup-dosemu currently is only able to handle setup
***       via TclTk. Fortunately you have that installed ;-)
"
    mkdir -p ~/.dosemu/tmp
    cd setup
    exec ./runtime_setup.tk
  fi
fi

echo "
*** NOTE: setup-dosemu needs TclTk, you don't have it.
"
exit 1
