f8bb4c968b
Copy from Java:packages/rhino based on submit request 24642 from user mvyskocil OBS-URL: https://build.opensuse.org/request/show/24642 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rhino?expand=0&rev=6
32 lines
604 B
Bash
32 lines
604 B
Bash
#!/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.debugger.Main
|
|
BASE_FLAGS="-Xbootclasspath/p:$(build-classpath rhino jline xmlbeans/xbean)"
|
|
BASE_JARS="rhino jline xmlbeans/xbean"
|
|
|
|
# Set parameters
|
|
set_jvm
|
|
set_classpath $BASE_JARS
|
|
set_flags $BASE_FLAGS
|
|
set_options $BASE_OPTIONS
|
|
|
|
# Let's start
|
|
run "$@"
|