From 622e6cdd632cba0fbf1a523a32d6641eec0c6639 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Mon, 7 Mar 2011 17:09:22 -0500 Subject: Use autoconf to generate build.properties and jrunscript 2011-03-07 Omair Majid * 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. --- jrunscript.in | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 jrunscript.in (limited to 'jrunscript.in') 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 $@ -- cgit v1.2.3