On 4/9/07, Fix <[EMAIL PROTECTED]> wrote:
> On 4/9/07, Fix <[EMAIL PROTECTED]> wrote:
> > profile.d/extrapaths.sh:
> >
> > [QUOTE]
> > for directory in $(find /opt/*/lib/pkgconfig -type d 2>/dev/null); do
> > pathappend $directory PKG_CONFIG_PATH
> > done
> > for directory in $(find /opt/*/bin -type d 2>/dev/null); do
> > pathappend $directory
> > done
> > [/QUOTE]
> >
> > These commands WILL NOT find directories /opt/lib/pkgconfig and /opt/bin.
> > I suggest to use the following parameters instead:
> >
> > find /opt/ -path '*/lib/pkgconfig' -type d
> >
> > and
> >
> > find /opt/ -path '*/bin' -type d
>
> Small amendment:
>
> find /opt/ -maxdepth 2 -path '*/lib/pkgconfig' -type d
> find /opt/ -maxdepth 1 -path '*/bin' -type d
Thanks for the report. I'd prefer not to fork processes every time a
login shell is started. We should be able to do the same thing with
shell builtins.
for dir in /opt{,/*}/lib/pkgconfig; do
[ -d "$dir" ] || continue
pathappend $dir PKG_CONFIG_PATH
done
for dir in /opt{,/*}/bin; do
[ -d "$dir" ] || continue
pathappend $dir
done
Does the above work for you?
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page