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