aboutsummaryrefslogtreecommitdiff
path: root/src/env
blob: dc55d481d6ca68657fd0853a9bcbcbd952b2ac15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#Too be sourced

if [[ -n ${GENTOO_VM} ]]; then
	vmpath=/usr/share/java-config/vms/${GENTOO_VM}/
elif [[ -h ${HOME}/.gentoo/user-vm ]]; then
	vmpath=${HOME}/.gentoo/user-vm/
else
	vmpath=/usr/share/java-config/vms/system-vm/
fi

source ${vmpath}/env