#!/bin/sh
#
# $FreeBSD: ports/textproc/saxon-devel/files/saxon.sh.in,v 1.2 2006/03/22 10:46:17 hq Exp $

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 /usr/local/share/java/classes/saxon8-sql.jar /usr/local/share/java/classes/saxon8.jar /usr/local/share/java/classes/saxon8-xpath.jar /usr/local/share/java/classes/saxon8-dom.jar
do
	SAXON_CLASSPATH="${SAXON_CLASSPATH}:${jarfile}"
done

JAVA_VERSION="1.4+" exec "/usr/local/bin/java" -classpath "${SAXON_CLASSPATH}" "${LAUNCHER_CLASS}" "$@"
