blob: 811fa943c8add925baaf8d88205ec380af33d611 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
if [[ -n ${GENTOO_VM} ]]; then
vmpath=/etc/java-config/vms/${GENTOO_VM}/
elif [[ -h ${HOME}/.gentoo/user-vm ]]; then
vmpath=${HOME}/.gentoo/user-vm/
else
vmpath=/etc/java-config/vms/system-vm/
fi
tool=$(basename $0)
bin=${vmpath}/bin/${tool}
if [[ -x ${bin} ]]; then
exec ${bin} "${@}"
else
echo "Want too run ${bin} but it does not exist or is not executable" >&2
exit 1
fi
|