#!/bin/sh
#
# bsh2 script
# JPackage Project (http://jpackage.sourceforge.net)
# Source functions library
. /usr/share/java-utils/java-functions
# Source system prefs
if [ -f /etc/bsh2.conf ] ; then
  . /etc/bsh2.conf
fi
# Source user prefs
if [ -f $HOME/.bsh2rc ] ; then
  . $HOME/.bsh2rc
fi
# Configuration
MAIN_CLASS=bsh.Interpreter
if [ -n "$BSH_DEBUG" ]; then
  BASE_FLAGS=-Ddebug=true
fi
BASE_JARS="bsh2.jar"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"
