diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2005-07-03 15:24:36 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2005-07-03 15:24:36 +0000 |
commit | f6532aefc58d93ef44ef0416668055576ba67f22 (patch) | |
tree | 1235bec796e84a81cd7c408ad8dd3be9768c3e09 | |
parent | silly name change (diff) | |
download | java-config-backups/symlink-axxo@319.tar.gz java-config-backups/symlink-axxo@319.tar.bz2 java-config-backups/symlink-axxo@319.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
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | src/env | 12 |
3 files changed, 14 insertions, 1 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index e910148..243b009 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ recursive-include man/ * recursive-include config/ * +include src/env @@ -24,7 +24,7 @@ setup ( ('share/java-config/config', ["config/jdk-defaults.conf"]), ('/etc/java-config/', ["config/jdk.conf"]), ('/etc/env.d/',["config/20java-config"]), - ('share/java-config/', ["config/symlink-tools"]) + ('share/java-config/', ["config/symlink-tools", "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 |