Blame SOURCES/batik.squiggle.script

c8a4ef
#!/bin/sh
c8a4ef
# 
c8a4ef
# Batik SVG Browser (Squiggle) script
c8a4ef
# JPackage Project <http://www.jpackage.org/>
c8a4ef
c8a4ef
# Source functions library
c8a4ef
if [ -f /usr/share/java-utils/java-functions ] ; then 
c8a4ef
  . /usr/share/java-utils/java-functions
c8a4ef
else
c8a4ef
  echo "Can't find functions library, aborting"
c8a4ef
  exit 1
c8a4ef
fi
c8a4ef
c8a4ef
# Source system prefs
c8a4ef
if [ -f /etc/squiggle.conf ] ; then 
c8a4ef
  . /etc/squiggle.conf
c8a4ef
fi
c8a4ef
c8a4ef
# Source user prefs
c8a4ef
if [ -f $HOME/.squigglerc ] ; then 
c8a4ef
  . $HOME/.squigglerc
c8a4ef
fi
c8a4ef
c8a4ef
# Configuration
c8a4ef
MAIN_CLASS=org.apache.batik.apps.svgbrowser.Main
c8a4ef
BASE_JARS="batik-squiggle.jar batik-all.jar rhino.jar xml-commons-apis.jar
c8a4ef
xml-commons-apis-ext.jar"
c8a4ef
# Set parameters
c8a4ef
set_jvm
c8a4ef
set_classpath $BASE_JARS
c8a4ef
set_flags $BASE_FLAGS
c8a4ef
set_options $BASE_OPTIONS
c8a4ef
c8a4ef
c8a4ef
# Let's start
c8a4ef
run "$@"