2006-04-28 05:16:02 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
2006-09-20 05:36:59 +02:00
|
|
|
if [ -z "${DISPLAY}" ]; then
|
|
|
|
JAVA_AWT_HEADLESS="-Djava.awt.headless=true"
|
|
|
|
else
|
|
|
|
JAVA_AWT_HEADLESS=""
|
|
|
|
fi
|
2012-07-05 22:30:09 +02:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
MAPYRUS_ARGS="-h"
|
|
|
|
else
|
|
|
|
MAPYRUS_ARGS="$@"
|
|
|
|
fi
|
2014-03-30 17:43:49 +02:00
|
|
|
JAVA_VERSION="%%JAVA_VERSION%%" \
|
2012-09-06 23:58:21 +02:00
|
|
|
exec "%%LOCALBASE%%/bin/java" ${JAVA_AWT_HEADLESS} -jar "%%DATADIR%%/mapyrus.jar" ${MAPYRUS_ARGS}
|