mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
Updated /etc/profile.d/jdk.sh script.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6479 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
fada5158fb
commit
93a1fa32f1
@ -373,7 +373,6 @@ unset ALT_CACERTS_FILE PATH_HOLD</userinput></screen>
|
||||
|
||||
# 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</literal>
|
||||
EOF</userinput></screen>
|
||||
|
@ -54,7 +54,8 @@
|
||||
instructions.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[dj] - Updated to JDK-1.5.0_10.</para>
|
||||
<para>[dj] - Updated to JDK-1.5.0_10 and modiefied jdk.sh
|
||||
profile.d script.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
@ -254,8 +254,8 @@
|
||||
|
||||
<listitem>
|
||||
<para>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:
|
||||
<emphasis>DJ Lucas</emphasis></para>
|
||||
</listitem>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user