#!/bin/sh
# Cecilia 
#
#      Started by Stephen Burgess for version 2.0.4
#
#      Edited by Hans-Christoph Steiner
#      $Id $
#
# this script avoids installation-specific problems, 
# like wrong wish path in tcl file

if [ -x /Applications/Utilities/Wish\ Shell.app/Contents/MacOS/Wish\ Shell ]; then
    WISH=/Applications/Utilities/Wish\ Shell.app/Contents/MacOS/Wish\ Shell
elif [ -x /Applications/Wish\ Shell.app/Contents/MacOS/Wish\ Shell ]; then
    WISH=/Applications/Wish\ Shell.app/Contents/MacOS/Wish\ Shell
elif [ -x /sw/bin/wish ]; then
    WISH=/sw/bin/wish
elif [ -x /usr/local/bin/wish ]; then
    WISH=/usr/local/bin/wish
elif [ -x /usr/bin/wish ]; then
    WISH=/usr/bin/wish
else
    WISH=wish
fi

echo Wish Shell: $WISH
echo Cecilia Tcl Launcher: ${0}-tcl
"$WISH" ${0}-tcl "$@"
