r6790 - in trunk/BOOK: . introduction/welcome postlfs/config

dnicholson at linuxfromscratch.org dnicholson at linuxfromscratch.org
Sun May 27 09:00:46 PDT 2007


Author: dnicholson
Date: 2007-05-27 10:00:46 -0600 (Sun, 27 May 2007)
New Revision: 6790

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/postlfs/config/profile.xml
Log:
Fix extrapaths.sh to find correct dirs in /opt


Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2007-05-25 23:47:18 UTC (rev 6789)
+++ trunk/BOOK/general.ent	2007-05-27 16:00:46 UTC (rev 6790)
@@ -3,7 +3,7 @@
 $Date$
 -->
 
-<!ENTITY day          "25">                   <!-- Always 2 digits -->
+<!ENTITY day          "26">                   <!-- Always 2 digits -->
 <!ENTITY month        "05">                   <!-- Always 2 digits -->
 <!ENTITY year         "2007">
 <!ENTITY version      "svn-&year;&month;&day;">

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2007-05-25 23:47:18 UTC (rev 6789)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2007-05-27 16:00:46 UTC (rev 6790)
@@ -42,6 +42,16 @@
 -->
 
     <listitem>
+      <para>May 26th, 2007</para>
+      <itemizedlist>
+        <listitem>
+          <para>[dnicholson] - Fixed the Bash Shell Startup files to find
+          the directories in /opt correctly. Thanks to Fix for the report.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>May 25th, 2007</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/postlfs/config/profile.xml
===================================================================
--- trunk/BOOK/postlfs/config/profile.xml	2007-05-25 23:47:18 UTC (rev 6789)
+++ trunk/BOOK/postlfs/config/profile.xml	2007-05-27 16:00:46 UTC (rev 6790)
@@ -220,12 +220,17 @@
 if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
         pathprepend /usr/local/sbin
 fi
-for directory in $(find /opt/*/lib/pkgconfig -type d 2>/dev/null); do
-        pathappend $directory PKG_CONFIG_PATH
+
+for dir in /opt{,/*}/lib/pkgconfig; do
+        [ -d "$dir" ] || continue
+        pathappend $dir PKG_CONFIG_PATH
 done
-for directory in $(find /opt/*/bin -type d 2>/dev/null); do
-        pathappend $directory
+for dir in /opt{,/*}/bin; do
+        [ -d "$dir" ] || continue
+        pathappend $dir
 done
+unset dir
+
 if [ -d ~/bin ]; then
         pathprepend ~/bin
 fi




More information about the blfs-book mailing list