freebsd-ports/textproc/saxon-devel/files/saxon.sh.in
Herve Quiroz a55a53397f - Update to 8.7
- Use 'exec' in the launcher shell script to comply with Porter's Handbook
  guidelines
- Use OPTIONS to add support for JDom and XOM [1]

PR:		86093 [1]
Suggested by:	Rene Ladan <r.c.ladan@student.tue.nl> [1]
2006-03-22 10:46:17 +00:00

20 lines
387 B
Bash

#!/bin/sh
#
# $FreeBSD$
IAM="`basename "$0"`"
if [ "${IAM}" = "saxon-xquery" ]
then
LAUNCHER_CLASS="net.sf.saxon.Query"
else
LAUNCHER_CLASS="net.sf.saxon.Transform"
fi
SAXON_CLASSPATH=""
for jarfile in %%SAXON_JARS%%
do
SAXON_CLASSPATH="${SAXON_CLASSPATH}:${jarfile}"
done
JAVA_VERSION="1.4+" exec "%%LOCALBASE%%/bin/java" -classpath "${SAXON_CLASSPATH}" "${LAUNCHER_CLASS}" "$@"