Blame SOURCES/rhino.script

b82361
#!/bin/sh
b82361
#
b82361
# rhino script
b82361
# JPackage Project <http://www.jpackage.org/>
b82361
b82361
# Source functions library
b82361
. /usr/share/java-utils/java-functions
b82361
b82361
# Source system prefs
b82361
if [ -f /etc/rhino.conf ] ; then
b82361
  . /etc/rhino.conf
b82361
fi
b82361
b82361
# Source user prefs
b82361
if [ -f $HOME/.rhinorc ] ; then
b82361
  . $HOME/.rhinorc
b82361
fi
b82361
b82361
# Configuration
b82361
MAIN_CLASS=org.mozilla.javascript.tools.shell.Main
b82361
# Remove xmlbeans until we have it in Fedora
b82361
#BASE_JARS="rhino jline xmlbeans/xbean"
b82361
BASE_JARS="rhino jline"
b82361
b82361
# Set parameters
b82361
set_jvm
b82361
set_classpath $BASE_JARS
b82361
set_flags $BASE_FLAGS
b82361
set_options $BASE_OPTIONS
b82361
b82361
# Let's start
b82361
run "$@"