0488fc4a35
(bump PORTREVISION) - Remove leading article from COMMENT - Add support for stage dir
14 lines
339 B
Bash
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}
|