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

41 lines
750 B
Bash

#!/bin/sh
#
# bsh-desktop 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.Console
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 "$@"