All pastes #28609 Raw Edit

Miscellany

public shellscript v1 · immutable
#28609 ·published 2005-11-13 22:11 UTC
rendered paste body
	local javac	local compiler=$(java-pkg_get-compiler_) 	if [[ "${compiler}" = "javac" ]]; then		echo "javac"		return	fi	local compiler_env="/etc/env.d/java/50${compiler}"	if [[ -f ${compiler_env} ]]; then		local compiler_executable=$(source ${compiler_env} 1>/dev/null 2>&1; echo ${JAVAC})		if [[ ! -x ${compiler_executable} ]]; then			eerror "Could not find ${compiler_executable}!"			die "${compiler_executable} doesn't exist, or isn't executable"		fi		[[ -n ${JAVA_PKG_DEBUG} ]] && 			echo ${compiler_executable} $(java-pkg_javac-args) "${@}"		${compiler_executable} $(java-pkg_javac-args) "${@}" || die "${javac} failed"	else		eerror "Could not find environment file for ${compiler}"		die "Could not find ${compiler.env}"	fi