aboutsummaryrefslogtreecommitdiffstats
path: root/jrunscript.in
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-03-07 17:09:22 -0500
committerOmair Majid <[email protected]>2011-03-07 17:09:22 -0500
commit622e6cdd632cba0fbf1a523a32d6641eec0c6639 (patch)
treea1fb7142ed956eaa3edad89428fa04084655ecb8 /jrunscript.in
parent3626af6c2e36aa74e5347ada4f99e9fca40ccaeb (diff)
Use autoconf to generate build.properties and jrunscript
2011-03-07 Omair Majid <[email protected]> * acinclude.m4 (IT_FIND_RHINO_JAR): Set RHINO_AVAILABLE to true or false appropriately. * build.properties.in: New file. * jrunscript.in: New file. * configure.ac: Add build.properties and jrunscript to AC_CONFIG_FILES. * Makefile.am (.PHONY): Remove clean-jrunscript. (build.properties): Remove target. (stamps/netx.stamp): Remove dependency on build.properties. (clean-netx): Do not delete build.properties. (jrunscript): Remove target. (check-pac-functions): Remove dependency on jrunscript. (clean-tests): Remove dependency on clean-jrunscript. (clean-jrunscript): Remove target.
Diffstat (limited to 'jrunscript.in')
-rw-r--r--jrunscript.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/jrunscript.in b/jrunscript.in
new file mode 100644
index 0000000..53e620a
--- /dev/null
+++ b/jrunscript.in
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ x"@RHINO_JAR@" == x ] ; then
+ echo "jrunscript requires rhino support"
+ exit 1
+fi
+
+@JAVA@ -cp "@RHINO_JAR@" org.mozilla.javascript.tools.shell.Main $@