java-bsh/java-bsh-1.3.0-bsh-script

41 lines
746 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
#
# bsh script
# JPackage Project (http://jpackage.sourceforge.net)
# Source functions library
. /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.Interpreter
if [ -n "$BSH_DEBUG" ]; then
BASE_FLAGS=-Ddebug=true
fi
BASE_JARS="bsh.jar"
#if [ -f /usr/lib/libJavaReadline.so ]; then
# BASE_FLAGS=" -Djava.library.path=/usr/lib"
# BASE_FLAGS="$BASE_FLAGS -Dbsh.console.readlinelib=GnuReadline"
# BASE_JARS="$BASE_JARS libreadline-java.jar"
#fi
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"