diff options
Diffstat (limited to 'textproc/fop/files/fop.sh.in')
-rw-r--r-- | textproc/fop/files/fop.sh.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/textproc/fop/files/fop.sh.in b/textproc/fop/files/fop.sh.in new file mode 100644 index 000000000000..2c685be75fdc --- /dev/null +++ b/textproc/fop/files/fop.sh.in @@ -0,0 +1,18 @@ +#! /bin/sh +# +# $FreeBSD$ + +if [ -f $HOME/.foprc ] ; then + . $HOME/.foprc +fi + +# add fop.jar, which resides in $FOP_HOME/build +CLASSPATH="%%DATADIR%%/build/fop.jar:${CLASSPATH}" + +# add in the dependency .jar files, which reside in $FOP_HOME/lib +for jarfile in %%DATADIR%%/lib/*.jar +do + CLASSPATH="${jarfile}:${CLASSPATH}" +done + +JAVA_VERSION="1.2+" "%%LOCALBASE%%/bin/java" ${JAVA_OPTS} -classpath "${CLASSPATH}" ${FOP_OPTS} org.apache.fop.apps.Fop "$@" |