xmlgraphics-fop/xmlgraphics-fop.script
Thomas Schraitle 1170201241 Accepting request 144816 from home:slavb18:branches:Java:packages
- patched fop.xconf
  * added <auto-detect/> to pdf renderer section, so now possible to use system fonts like font-family="DejaVuSansMono"
- fix the spec file to install a (default) fop.xconf file in /etc
- patched scripts to use /etc/fop.xconf

OBS-URL: https://build.opensuse.org/request/show/144816
OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=26
2012-12-10 07:18:55 +00:00

46 lines
1.0 KiB
Bash

#!/bin/sh
#
# FOP 0.94 script
# JPackage Project <http://www.jpackage.org/>
# $Id$
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Load system-wide configuration
if [ -f /etc/fop.conf ]; then
. /etc/fop.conf
fi
fopxconf=/etc/fop.xconf
fop_exec_args=
if [ -f "$fopxconf" ] ; then
config_found=0
for i in "$@"; do if [ "$i" = "-c" ]; then config_found=1; break; fi; done
if [ $config_found = 0 ]; then
fop_exec_args="-c $fopxconf $fop_exec_args"
fi
fi
# Load user configuration
if [ -f "$HOME/.foprc" ]; then
. "$HOME/.foprc"
fi
# Rest of the configuration
MAIN_CLASS=org.apache.fop.cli.Main
BASE_JARS="xmlgraphics-fop xmlgraphics-commons commons-logging commons-io excalibur/avalon-framework-impl excalibur/avalon-framework-api batik-all"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS $FOP_OPTS
# Let's start
run $fop_exec_args "$@"