diff options
Diffstat (limited to 'src/profile.d/java-config-2.csh')
-rw-r--r-- | src/profile.d/java-config-2.csh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/profile.d/java-config-2.csh b/src/profile.d/java-config-2.csh new file mode 100644 index 0000000..0f4e77e --- /dev/null +++ b/src/profile.d/java-config-2.csh @@ -0,0 +1,21 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/files/java-config-2.profiled.csh,v 1.3 2007/01/13 17:17:08 grobian Exp $ + +set gentoo_user_vm = "${HOME}/.gentoo/java-config-2/current-user-vm" +set gentoo_system_vm = "/etc/java-config-2/current-system-vm" + +## If we have a current-user-vm (and aren't root)... set it to JAVA_HOME +## Otherwise set to the current system vm +if ( ( "$uid" != "0" ) && ( -l $gentoo_user_vm ) ) then + setenv JAVA_HOME $gentoo_user_vm +else if ( -l $gentoo_system_vm ) then + setenv JAVA_HOME $gentoo_system_vm +endif +unset gentoo_user_vm gentoo_system_vm + +if ( $?JAVA_HOME ) then + setenv MANPATH "${MANPATH}:${JAVA_HOME}/man" + setenv JDK_HOME $JAVA_HOME + setenv JAVAC ${JDK_HOME}/bin/javac +endif |