From 93a1fa32f1d46106ee01da3a80888c7bd4818765 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Sun, 28 Jan 2007 19:39:54 +0000 Subject: [PATCH] Updated /etc/profile.d/jdk.sh script. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6479 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- general/prog/jdk.xml | 20 ++++++-------------- introduction/welcome/changelog.xml | 3 ++- introduction/welcome/credits.xml | 4 ++-- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/general/prog/jdk.xml b/general/prog/jdk.xml index 66cf7a4fa7..66bb2a55c6 100644 --- a/general/prog/jdk.xml +++ b/general/prog/jdk.xml @@ -373,7 +373,6 @@ unset ALT_CACERTS_FILE PATH_HOLD # Set JAVA_HOME directory JAVA_HOME=/opt/jdk/jdk -export JAVA_HOME # Adjust PATH pathappend ${JAVA_HOME}/bin PATH @@ -381,21 +380,14 @@ pathappend ${JAVA_HOME}/bin PATH # Auto Java CLASSPATH # Copy jar files to, or create symlinks in this directory AUTO_CLASSPATH_DIR=/usr/lib/classpath -# Check for jar files in AUTO_CLASSPATH_DIR (if empty, don't include) -if [ `ls ${AUTO_CLASSPATH_DIR}/*.jar &> /dev/null` ]; then - CLASSPATH=.:${AUTO_CLASSPATH_DIR} -else - # Always have the current directory in the CLASSPATH - CLASSPATH=. -fi - -# Add subdirectories -ls -d ${AUTO_CLASSPATH_DIR}/*/ &> /dev/null && -for i in `ls -d ${AUTO_CLASSPATH_DIR}/*/` - do CLASSPATH=${CLASSPATH}:"${i}" +pathprepend . CLASSPATH +for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do + pathappend $dir CLASSPATH done -export CLASSPATH +export JAVA_HOME CLASSPATH +unset AUTO_CLASSPATH_DIR +unset dir # End /etc/profile.d/jdk.sh EOF diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index 2be198ff37..e4bb143563 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -54,7 +54,8 @@ instructions. - [dj] - Updated to JDK-1.5.0_10. + [dj] - Updated to JDK-1.5.0_10 and modiefied jdk.sh + profile.d script. diff --git a/introduction/welcome/credits.xml b/introduction/welcome/credits.xml index 428ffa98b5..9ee52b36d8 100644 --- a/introduction/welcome/credits.xml +++ b/introduction/welcome/credits.xml @@ -254,8 +254,8 @@ Archive::Zip, cracklib, JDK-5, libdrm, libpcap, Mesa, ncpfs, - netfs, OpenOffice-2, pppd (update), RP-PPPoE, Samba-3, Subversion - and xterm: + netfs, OpenOffice-2, pppd (update), RP-PPPoE, Samba-3, Subversion, + Xorg-7 and xterm: DJ Lucas