freebsd-ports/graphics/mapyrus/files/mapyrus.in

15 lines
339 B
Text
Raw Normal View History

#!/bin/sh
# $FreeBSD$
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="%%JAVA_VERSION%%" \
exec "%%LOCALBASE%%/bin/java" ${JAVA_AWT_HEADLESS} -jar "%%DATADIR%%/mapyrus.jar" ${MAPYRUS_ARGS}