On 5/27/07, Dan Nicholson <[EMAIL PROTECTED]> wrote:

> It might just be best to drop the globbing altogether and assume that
> if you install something in /opt, then you will setup the appropriate
> PATH, PKG_CONFIG_PATH, ld.so.conf, etc. In that case, we can just have
> a single test for /opt/bin and /opt/lib/pkgconfig just like the
> /usr/local cases.

What I have is:

#for directory in $(find /opt/*/lib/pkgconfig -type d 2>/dev/null); do
#        pathappend $directory PKG_CONFIG_PATH
#done

if [ -d /opt/qt/lib/pkgconfig ] ; then
        pathappend /opt/qt/lib/pkgconfig PKG_CONFIG_PATH
fi

if [ -d /opt/kde/lib/pkgconfig ] ; then
        pathappend /opt/kde/lib/pkgconfig PKG_CONFIG_PATH
fi

#for directory in $(find /opt/*/bin -type d 2>/dev/null); do
#        pathappend $directory
#done

if [ -d /opt/qt/bin ] ; then
        pathappend /opt/qt/bin
fi

if [ -d /opt/kde/bin ] ; then
        pathappend /opt/kde/bin
fi

  -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to