aboutsummaryrefslogtreecommitdiff
path: root/src/env
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-07-03 15:24:36 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-07-03 15:24:36 +0000
commitf6532aefc58d93ef44ef0416668055576ba67f22 (patch)
tree1235bec796e84a81cd7c408ad8dd3be9768c3e09 /src/env
parentsilly name change (diff)
downloadjava-config-f6532aefc58d93ef44ef0416668055576ba67f22.tar.gz
java-config-f6532aefc58d93ef44ef0416668055576ba67f22.tar.bz2
java-config-f6532aefc58d93ef44ef0416668055576ba67f22.zip
provide a file that can be sourced to get javac/java_homebackups/symlink-axxo@319
svn path=/java-config-ng/branches/symlink-axxo/; revision=311
Diffstat (limited to 'src/env')
-rw-r--r--src/env12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/env b/src/env
new file mode 100644
index 0000000..dc55d48
--- /dev/null
+++ b/src/env
@@ -0,0 +1,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