gst-plugins-base1: Update to 1.22.1
[oi-userland.git] / components / developer / beanshell / patches / bsh.patch
blob136a9a1ce4c9a18b796daf42517f9d59e585a818
1 --- beanshell-2.0b4/scripts/bsh Fri Oct 19 14:54:14 2007
2 +++ beanshell-2.0b4/scripts/bsh.new Tue May 10 17:13:29 2011
3 @@ -10,11 +10,28 @@
4 # always be used.
7 +help()
8 +{
9 +cat << EOF
10 + BeanShell, a small and embeddable Java source interpreter
11 + Usage:
12 + beansh | beanshell [ -g ] [Beanshell Script....]
13 + -g : beanshell graphics mode
14 + -h or --help : this manual
16 +EOF
19 +if [ "$1" = "-h" -o "$1" = "--help" ]; then
20 + help
21 + exit;
22 +fi
24 # The (hard coded) location of a default bsh jar.
25 # e.g. Win
26 #DEFAULTBSH=`cygpath --windows $HOME/pkg/bsh-1.3a1.jar`
27 # e.g. Unix
28 -DEFAULTBSH=/home/pat/bin/bsh-1.3a1.jar
29 +DEFAULTBSH=/usr/share/lib/java/bsh-2.0b6.jar
31 name=`basename $0`
32 if [ $name = "bshd" ]; then
33 @@ -54,6 +71,10 @@
34 path=${DEFAULTBSH}
37 - java $debug -classpath $path bsh.Interpreter $*
38 + if [ "$1" = "-g" ]; then
39 + java $debug -classpath $path bsh.Console
40 + else
41 + java $debug -classpath $path bsh.Interpreter $*
42 + fi