freebsd-ports/graphics/mapyrus/files/mapyrus.in
Nicola Vitale 0488fc4a35 - Fix a typo in mapyrus script, that prevented the program to start
(bump PORTREVISION)
- Remove leading article from COMMENT
- Add support for stage dir
2014-03-30 15:43:49 +00:00

14 lines
339 B
Bash

#!/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}