summaryrefslogtreecommitdiff
path: root/java/jflex/files/jflex.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'java/jflex/files/jflex.sh.in')
-rw-r--r--java/jflex/files/jflex.sh.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/java/jflex/files/jflex.sh.in b/java/jflex/files/jflex.sh.in
new file mode 100644
index 000000000000..7d90f63d7ab0
--- /dev/null
+++ b/java/jflex/files/jflex.sh.in
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Replacement for the script that came with JFlex
+# because bash is not necessarily on a FreeBSD
+# machine. Also, we know where the jar is.
+#
+# Conor McDermottroe <ports@mcdermottroe.com>
+#
+# $FreeBSD$
+
+# Allow the user to override where JFlex.jar lives
+JAVAJARDIR="${JAVAJARDIR:-"%%JAVAJARDIR%%"}"
+
+"%%LOCALBASE%%/bin/java" -jar "${JAVAJARDIR}/JFlex.jar" "$@"