aboutsummaryrefslogtreecommitdiff
path: root/textproc/saxon-devel/files/saxon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/saxon-devel/files/saxon.sh')
-rw-r--r--textproc/saxon-devel/files/saxon.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/textproc/saxon-devel/files/saxon.sh b/textproc/saxon-devel/files/saxon.sh
index 6ce24f729bc4..bfbf5eb61bc3 100644
--- a/textproc/saxon-devel/files/saxon.sh
+++ b/textproc/saxon-devel/files/saxon.sh
@@ -1,6 +1,14 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/textproc/saxon-devel/files/Attic/saxon.sh,v 1.2 2004-07-17 08:19:44 glewis Exp $
+# $FreeBSD: /tmp/pcvs/ports/textproc/saxon-devel/files/Attic/saxon.sh,v 1.3 2004-10-27 16:50:43 hq Exp $
-export CLASSPATH=`%%PREFIX%%/bin/classpath`
-JAVAVM=%%JAVAVM%% javavm -jar %%JAVAJARDIR%%/saxon8.jar $@
+IAM=`basename "$0"`
+
+if [ "${IAM}" = "saxon-xquery" ]
+then
+ LAUNCHER_CLASS="net.sf.saxon.Query"
+else
+ LAUNCHER_CLASS="net.sf.saxon.Transform"
+fi
+
+JAVAVM=%%JAVAVM%% %%LOCALBASE%%/bin/javavm -classpath "`%%LOCALBASE%%/bin/classpath`" ${LAUNCHER_CLASS} $@