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.

45 lines
1005 B

#!/bin/bash
DB_EXT=/usr/share/xml/docbook/xsl-stylesheets-1.78.1/extensions/xalan27.jar
LIBS=/usr/lib/apache-xml:/usr/lib/apache-xml/*:$DB_EXT
PROGRAM_CLASS=org.apache.xalan.xslt.Process
RESOLVER_CLASS=org.apache.xml.resolver.tools.CatalogResolver
OPTS="-ENTITYRESOLVER $RESOLVER_CLASS -URIRESOLVER $RESOLVER_CLASS"
while true ; do
case "$1" in
-n|--nocatalog)
OPTS=""
shift
;;
-h|--help)
java -cp $LIBS $PROGRAM_CLASS
exit 0
;;
-e|--extra-libs)
LIBS="$2:$LIBS"
shift 2
;;
--)
shift
break
;;
*)
break
;;
esac
done
if [ -z "$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: -f1,2`
proxy_port=`echo $http_proxy | cut -d: -f3`
JAVAOPTS="$JAVAOPTS -Dhttp.proxyHost=$proxy_host -Dhttp.proxyPort=$proxy_port"
fi
java $JAVAOPTS $PROGRAM_CLASS $OPTS $@