In bashrc', don't add non-existent directories to ACLOCAL_PATH'.

svn path=/nixos/trunk/; revision=13033
This commit is contained in:
Ludovic Courtès 2008-10-09 19:58:11 +00:00
parent d438b972b1
commit f7770a6b63

View File

@ -39,7 +39,13 @@ for i in $NIX_PROFILES; do # !!! reverse
export PATH=$i/bin:$i/sbin:$PATH
export INFOPATH=$i/info:$i/share/info:$INFOPATH
export PKG_CONFIG_PATH="$i/lib/pkgconfig:$PKG_CONFIG_PATH"
# Automake's `aclocal' bails out if it finds non-existent directories
# in its path.
if [ -d "$i/share/aclocal" ]
then
export ACLOCAL_PATH="$i/share/aclocal:$ACLOCAL_PATH"
fi
done