Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
567 B

#!/bin/sh
DB_EXT=/usr/share/xml/docbook/xsl-stylesheets-ns-1.79.2/extensions/xalan27.jar
LIBS=/usr/lib/apache-fop:/usr/lib/apache-fop/*:$DB_EXT
PROGRAM_CLASS=org.apache.fop.cli.Main
CONF=/etc/fop.conf
if [ ! "$1" ]; then
java -cp $LIBS $PROGRAM_CLASS
exit 1
fi
JAVAOPTS="-cp $LIBS"
if [ "x$http_proxy" != x ]; then
proxy_host=$(echo $http_proxy | cut -d: -f2 | cut -d/ -f3)
proxy_port=$(echo $http_proxy | cut -d: -f3)
JAVAOPTS="$JAVAOPTS -Dhttp.proxyHost=$proxy_host -Dhttp.proxyPort=$proxy_port"
fi
java $JAVAOPTS $PROGRAM_CLASS -c $CONF $@