Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 052e0c713f85f0dfbeb266e40f424d42 > files > 5

rhino-1.7R3-8.mga3.src.rpm

#!/bin/sh
#
# rhino script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
. /usr/share/java-utils/java-functions

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

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

# Configuration
MAIN_CLASS=org.mozilla.javascript.tools.shell.Main
# Remove xmlbeans until we have it in Fedora
#BASE_JARS="rhino jline xmlbeans/xbean"
BASE_JARS="rhino jline"

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

# Let's start
run "$@"