summarylogtreecommitdiffstats
path: root/josm
blob: 6f66198292f99c3c256cd04b58f5f9784bf08b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

JOSM_ARGS=""
JAWS_ARGS=""
JAWSFILE="/usr/share/java/josm/josm.jnlp"

[ -f /etc/conf.d/josm ] && . /etc/conf.d/josm

for a in ${JOSM_ARGS}; do
	JAWS_ARGS="$JAWS_ARGS -J${a}"
done

while [ $# -gt 0 ]; do
	JAWS_ARGS="$JAWS_ARGS -arg \"$1\""
	shift
done

eval "javaws ${JAWS_ARGS} ${JAWSFILE}"