#!/bin/sh
#
# bsh-desktop script
# JPackage Project (http://jpackage.sourceforge.net)

# Source functions library
_prefer_jre=true
. /usr/share/java-utils/java-functions

# Source system prefs
if [ -f /etc/bsh.conf ] ; then
  . /etc/bsh.conf
fi

# Source user prefs
if [ -f $HOME/.bshrc ] ; then
  . $HOME/.bshrc
fi

# Configuration
MAIN_CLASS=bsh.Console
if [ -n "$BSH_DEBUG" ]; then
  BASE_FLAGS=-Ddebug=true
fi

BASE_JARS="bsh.jar"

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run  "$@"
