#!/bin/bash
#
# run MAUpdate from the jar file
#
if [ "$1" == '--help' ]
then
	script_help runUpdate
	exit 0
fi

if [ -f ma/MailArchive.class ]
then
	launcher=ma/MailArchive
else
	launcher="-jar /usr/java/jarlib/MailArchive.jar"
fi

MEM=350m
java -Xmx$MEM $launcher MAUpdate \
     $1 $2 $3 $4 $5 $6 $7 $8 $9

#help
# Syntax:   runUpdate [options]
# Function: Run MAUpdate from the MailArchive jar file
#           The jar and support jar files must be in /usr/java/jarlib
# Options:  See MAUpdate documentation
#end

