SOURCES: java-beanshell.sh (NEW) - shell wrapper for beanshell

pawelz pawelz at pld-linux.org
Thu Feb 5 23:28:23 CET 2009


Author: pawelz                       Date: Thu Feb  5 22:28:23 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- shell wrapper for beanshell

---- Files affected:
SOURCES:
   java-beanshell.sh (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/java-beanshell.sh
diff -u /dev/null SOURCES/java-beanshell.sh:1.1
--- /dev/null	Thu Feb  5 23:28:23 2009
+++ SOURCES/java-beanshell.sh	Thu Feb  5 23:28:17 2009
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if [ "$JAVA_HOME" ]; then
+  JAVA=$JAVA_HOME/bin/java
+else
+  if [ -x /usr/bin/gij ]; then
+    JAVA=/usr/bin/gij
+  else
+    if [ -x /usr/bin/java ]; then
+      JAVA=/usr/bin/java
+    else
+      echo "Java not found." >&2
+      exit 1
+    fi
+  fi
+fi
+
+$JAVA -jar $(find-jar bsh)
================================================================


More information about the pld-cvs-commit mailing list