ports/java/jflex/files/jflex.sh.in
Rene Ladan dc2f027f30 java/jflex: undeprecate and update to 1.8.1
Further changes:
- use a prebuilt jar file to avoid depending on Maven or Bazel
- swith MASTER_SITES to GitHub
- add BSD3CLAUSE license
- rewrap pkg-descr

PR:		245447
Submitted by:	Jashank Jeremy
Approved by:	maintainer
MFH:		2020Q2
2020-05-24 11:26:26 +00:00

15 lines
394 B
Bash

#!/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%%"}"
exec "%%LOCALBASE%%/bin/java" -jar "${JAVAJARDIR}/jflex-%%PORTVERSION%%.jar" "$@"