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

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

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

Revision 1.20 Revision 1.22
562 # Write the actual script 562 # Write the actual script
563 echo "#!/bin/bash" > "${target}" 563 echo "#!/bin/bash" > "${target}"
564 [[ -n "${pre}" ]] && [[ -f "${pre}" ]] && cat "${pre}" >> "${target}" 564 [[ -n "${pre}" ]] && [[ -f "${pre}" ]] && cat "${pre}" >> "${target}"
565 echo "gjl_package=${JAVA_PKG_NAME}" >> "${target}" 565 echo "gjl_package=${JAVA_PKG_NAME}" >> "${target}"
566 cat "${var_tmp}" >> "${target}" 566 cat "${var_tmp}" >> "${target}"
567 rm -f "${var_tmp}"
567 echo "source /usr/share/java-config-2/launcher/launcher.bash" >> "${target}" 568 echo "source /usr/share/java-config-2/launcher/launcher.bash" >> "${target}"
568 569
569 if [[ -n "${target_dir}" ]]; then 570 if [[ -n "${target_dir}" ]]; then
570 DESTTREE="${target_dir}" dobin "${target}" 571 DESTTREE="${target_dir}" dobin "${target}"
571 local ret=$? 572 local ret=$?
1763# @return - The version of the current VM 1764# @return - The version of the current VM
1764# ------------------------------------------------------------------------------ 1765# ------------------------------------------------------------------------------
1765java-pkg_get-vm-version() { 1766java-pkg_get-vm-version() {
1766 debug-print-function ${FUNCNAME} $* 1767 debug-print-function ${FUNCNAME} $*
1767 1768
1768 java-pkg_get-current-vm | sed -e "s/.*-\([0-9.]\+\).*/\1/" 1769 java-config -g PROVIDES_VERSION
1769} 1770}
1770 1771
1771# ------------------------------------------------------------------------------ 1772# ------------------------------------------------------------------------------
1772# @internal-function java-pkg_switch-vm 1773# @internal-function java-pkg_switch-vm
1773# 1774#

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20