/[gentoo-x86]/eclass/java-vm-2.eclass
Gentoo

Diff of /eclass/java-vm-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.1 2006/06/24 18:36:59 nichoj Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.2 2006/06/25 16:28:09 nichoj Exp $
4# 4#
5# Author: Karl Trygve Kalleberg <karltk@gentoo.org> 5# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
6 6
7inherit eutils 7inherit eutils
8 8
75# TODO rename to something more evident, like install_env_file 75# TODO rename to something more evident, like install_env_file
76set_java_env() { 76set_java_env() {
77 local platform="$(get_system_arch)" 77 local platform="$(get_system_arch)"
78 local env_file="${D}${JAVA_VM_CONFIG_DIR}/${VMHANDLE}" 78 local env_file="${D}${JAVA_VM_CONFIG_DIR}/${VMHANDLE}"
79 local old_env_file="${D}/etc/env.d/java/20${P}" 79 local old_env_file="${D}/etc/env.d/java/20${P}"
80 local source_env_file="${FILESDIR}/${VMHANDLE}" 80 local source_env_file="${FILESDIR}/${VMHANDLE}.env"
81 81
82 if [[ ! -f ${source_env_file} ]]; then 82 if [[ ! -f ${source_env_file} ]]; then
83 die "Unable to find the env file: ${source_env_file}" 83 die "Unable to find the env file: ${source_env_file}"
84 fi 84 fi
85 85

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20