setup-hooks using addToSearchPath

I've accidentially reverted setup-hooks while merging with trunk. Correcting it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=9821
This commit is contained in:
Yury G. Kudryashov
2007-12-01 20:05:26 +00:00
parent c4640d5f49
commit 62676e09eb
8 changed files with 17 additions and 38 deletions
@@ -1,7 +1,5 @@
addAclocals () {
if test -d $1/share/aclocal; then
export ACLOCAL_PATH="$ACLOCAL_PATH${ACLOCAL_PATH:+:}$1/share/aclocal"
fi
addToSearchPathWithCustomDelimiter : ACLOCAL_PATH /share/aclocal "" $1
}
envHooks=(${envHooks[@]} addAclocals)