summaryrefslogtreecommitdiff
path: root/recipes/mozilla/rhino
diff options
context:
space:
mode:
authorRobert Schuster <robertschuster@fsfe.org>2009-09-18 14:24:59 +0200
committerRobert Schuster <robertschuster@fsfe.org>2009-09-18 14:24:59 +0200
commit544342567663c18e802dcfdbdcb12fc1d75bf803 (patch)
treedd8c6b24736aab2d7e405f9a66572d9be4cf96d1 /recipes/mozilla/rhino
parent8987e7ad7ddb8175029361a993b816b9a7cc9fdb (diff)
rhino 1.7r1: New recipe (from Jalimo SVN).
rhino-native 1.7r1: Dito.
Diffstat (limited to 'recipes/mozilla/rhino')
-rw-r--r--recipes/mozilla/rhino/rhino8
-rw-r--r--recipes/mozilla/rhino/rhino-jsc8
2 files changed, 16 insertions, 0 deletions
diff --git a/recipes/mozilla/rhino/rhino b/recipes/mozilla/rhino/rhino
new file mode 100644
index 0000000000..e2f87f690a
--- /dev/null
+++ b/recipes/mozilla/rhino/rhino
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ ! $JAVA ]; then
+ JAVA=java
+fi
+
+$JAVA -jar /usr/share/java/js.jar $@
+
diff --git a/recipes/mozilla/rhino/rhino-jsc b/recipes/mozilla/rhino/rhino-jsc
new file mode 100644
index 0000000000..d5f50e8451
--- /dev/null
+++ b/recipes/mozilla/rhino/rhino-jsc
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ ! $JAVA ]; then
+ JAVA=java
+fi
+
+$JAVA -cp .:/usr/share/java/js.jar org.mozilla.javascript.tools.jsc.Main $@
+