Blame SOURCES/fop.script

d3f190
#!/bin/sh
d3f190
# 
d3f190
# Fop script
d3f190
# JPackage Project <http://www.jpackage.org/>
d3f190
d3f190
# Source functions library
d3f190
if [ -f /usr/share/java-utils/java-functions ] ; then 
d3f190
  . /usr/share/java-utils/java-functions
d3f190
else
d3f190
  echo "Can't find functions library, aborting"
d3f190
  exit 1
d3f190
fi
d3f190
d3f190
# Source system prefs
d3f190
if [ -f /etc/fop.conf ] ; then 
d3f190
  . /etc/fop.conf
d3f190
fi
d3f190
d3f190
# Source user prefs
d3f190
if [ -f $HOME/.foprc ] ; then 
d3f190
  . $HOME/.foprc
d3f190
fi
d3f190
d3f190
# Configuration
d3f190
MAIN_CLASS=org.apache.fop.cli.Main
d3f190
# Set parameters
d3f190
set_jvm
d3f190
set_classpath commons-io batik-all avalon-framework-api \
d3f190
  avalon-framework-impl xmlgraphics-commons xml-commons-apis-ext \
d3f190
  commons-logging fop
d3f190
set_flags $BASE_FLAGS
d3f190
set_options $BASE_OPTIONS
d3f190
d3f190
# Let's start
d3f190
run "$@"