Johannes Hahn
9c5e681caa
- Recompressed gzip archive to bz2 to avoid warning - Fixed non-conffile-in-etc warning for %{_mavendepmapfragdir} - Added new xmlgraphics-fontmetrics and xmlgraphics-fontlist scripts to help for better FOP configuration - Added manpage and HTML for all scripts (xmlgraphics-fop, xmlgraphics-fop-fontmetrics, and xmlgraphics-fop-fontlist) - Created links without prefix xmlgraphics for xmlgraphics-fop-fontmetrics and xmlgraphics-fop-fontlist - Created links for all manpages without prefix xmlgraphics - Added two new scripts for creating font metrics and font lists OBS-URL: https://build.opensuse.org/request/show/70182 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=13
45 lines
937 B
Bash
45 lines
937 B
Bash
#!/bin/bash
|
|
|
|
# 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
|
|
|
|
# Load user configuration
|
|
if [ -f "$HOME/.foprc" ]; then
|
|
. "$HOME/.foprc"
|
|
fi
|
|
|
|
# Rest of the configuration
|
|
MAIN_CLASS_PFM=org.apache.fop.fonts.apps.PFMReader
|
|
MAIN_CLASS_TTF=org.apache.fop.fonts.apps.TTFReader
|
|
|
|
if [ "$1" = '-t' ]; then
|
|
MAIN_CLASS=${MAIN_CLASS_TTF}
|
|
shift
|
|
elif [ "$1" = "-p" ]; then
|
|
MAIN_CLASS=${MAIN_CLASS_PFM}
|
|
shift
|
|
else
|
|
MAIN_CLASS=${MAIN_CLASS_TTF}
|
|
fi
|
|
|
|
BASE_JARS="xmlgraphics-fop commons-io commons-logging excalibur/avalon-framework xml-commons-jaxp-1.3-apis xerces-j2 xalan-j2 xalan-j2-serializer"
|
|
|
|
# Set parameters
|
|
set_jvm
|
|
set_classpath $BASE_JARS
|
|
set_flags $BASE_FLAGS
|
|
set_options $BASE_OPTIONS $FOP_OPTS
|
|
|
|
# Let's start
|
|
run "$@"
|