Blame SOURCES/fop.script

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