#!/bin/sh
# $FreeBSD: head/graphics/mapyrus/files/mapyrus.in 320836 2013-06-13 20:18:12Z nivit $
if [ -z "${DISPLAY}" ]; then
    JAVA_AWT_HEADLESS="-Djava.awt.headless=true"
else
    JAVA_AWT_HEADLESS=""
fi
if [ -z "$1" ]; then
    MAPYRUS_ARGS="-h"
else
    MAPYRUS_ARGS="$@"
fi
JAVA_VERSION="%%JAVAVERSION%%" \
	exec "/usr/local/bin/java" ${JAVA_AWT_HEADLESS} -jar "/usr/local/share/java/mapyrus/mapyrus.jar" ${MAPYRUS_ARGS}
