#!/bin/sh
#
# Copyright (C) 1996-99 Mark Boyns <boyns@sdsu.edu>
#
# This file is part of Muffin.
#
# Muffin is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Muffin is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Muffin; see the file COPYING.  If not, write to the
# Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/share/java
JAVA=/usr/lib/jdk1.1/bin/java
JAVA_COMPILER=

jarpath=$libdir/muffin.jar

if [ -n "$CLASSPATH" ]
then
    CLASSPATH=$jarpath:$CLASSPATH
else
    CLASSPATH=$jarpath
fi
export CLASSPATH

if [ "$JAVA_COMPILER" = "tya" ]
then
    JAVA_COMPILER=tya
    export JAVA_COMPILER
fi

exec $JAVA org.doit.muffin.Main $*
