#!/bin/sh

# Shell script to run Anvil on a Linux machine
# Modified 08/06/2005 by Mary Ellen Foster <mefoster@gmail.com>

# Set paths to installed packages -- change these for your system!
ANVIL_HOME=/group/project/comic/anvil/anvil-4.5
JMF_HOME=/group/project/comic/anvil/JMF-2.1.1e
# If you are using jffmpeg, uncomment the following line and set the path
# JFFMPEG_HOME=/group/project/comic/anvil/jffmpeg

# You shouldn't need to edit anything from here down ...

# Classpath for Anvil classes
ANVIL_CP=${ANVIL_HOME}/anvil.jar:${ANVIL_HOME}/plugins:${JMF_HOME}/lib/jmf.jar

# Add jffmpeg if it's being used
if [ ! -z ${JFFMPEG_HOME} ]; then
    ANVIL_CP=${ANVIL_CP}:${JFFMPEG_HOME}/jffmpeg.jar
    export LD_LIBRARY_PATH=${JFFMPEG_HOME}:${JMF_HOME}/lib:${LD_LIBRARY_PATH}
fi

# Run the thing (using the appropriate $ANVIL_HOME)
java -mx1024M -cp ${ANVIL_CP}:${CLASSPATH} anvil.gui.Main $ANVIL_HOME
