Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 793965
Collapse All | Expand All

(-)a/src/modules/java-vm.eselect.in (-5 / +4 lines)
Lines 1-12 Link Here
1
# -*-eselect-*-  vim: ft=eselect
1
# -*-eselect-*-  vim: ft=eselect
2
# Copyright 1999-2017 Gentoo Foundation
2
# Copyright 1999-2024 Gentoo Authors
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
4
5
DESCRIPTION="Manage the Java system and user VM"
5
DESCRIPTION="Manage the Java system and user VM"
6
MAINTAINER="java@gentoo.org"
6
MAINTAINER="java@gentoo.org"
7
VERSION="@VERSION@"
7
VERSION="@VERSION@"
8
8
9
VM_BASE="${EROOT}/usr/lib/jvm"
9
VM_BASE="${EPREFIX}/usr/lib/jvm"
10
VM_SYSTEM="${EROOT}/etc/java-config-2/current-system-vm"
10
VM_SYSTEM="${EROOT}/etc/java-config-2/current-system-vm"
11
VM_USER="${HOME}/.gentoo${EPREFIX}/java-config-2/current-user-vm"
11
VM_USER="${HOME}/.gentoo${EPREFIX}/java-config-2/current-user-vm"
12
VM_CONFIG="${EROOT}/usr/share/java-config-2/vm"
12
VM_CONFIG="${EROOT}/usr/share/java-config-2/vm"
Lines 14-20 VM_CONFIG="${EROOT}/usr/share/java-config-2/vm" Link Here
14
find_targets() {
14
find_targets() {
15
	local TARGETS=() target
15
	local TARGETS=() target
16
16
17
	for target in "${VM_BASE}"/*; do
17
	for target in "${ROOT}${VM_BASE}"/*; do
18
		[[ -L "${target}" ]] && TARGETS+=( ${target##*/} )
18
		[[ -L "${target}" ]] && TARGETS+=( ${target##*/} )
19
	done
19
	done
20
20
Lines 181-187 set_symlink() { Link Here
181
	fi
181
	fi
182
	if [[ -z ${target} ]] ; then
182
	if [[ -z ${target} ]] ; then
183
		die -q "Target \"${1}\" doesn't appear to be valid!"
183
		die -q "Target \"${1}\" doesn't appear to be valid!"
184
	elif [[ -d ${VM_BASE}/${target} ]] ; then
184
	elif [[ -L ${ROOT}${VM_BASE}/${target} || -d ${ROOT}${VM_BASE}/${target} ]] ; then
185
		local sym_dir=${symlink%/*}
185
		local sym_dir=${symlink%/*}
186
		mkdir -p "${sym_dir}" || die -q "Could not create ${sym_dir}"
186
		mkdir -p "${sym_dir}" || die -q "Could not create ${sym_dir}"
187
		ln -snf "${VM_BASE}/${target}" "${symlink}"
187
		ln -snf "${VM_BASE}/${target}" "${symlink}"
188
- 

Return to bug 793965