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:
@@ -1,7 +1,5 @@
|
||||
addPerlLibPath () {
|
||||
if test -d $1/lib/site_perl; then
|
||||
export PERL5LIB="${PERL5LIB}${PERL5LIB:+:}$1/lib/site_perl"
|
||||
fi
|
||||
addToSearchPath PERL5LIB /lib/site_perl "" $1
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addPerlLibPath)
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
addPythonPath() {
|
||||
local p=$1/lib/python2.5/site-packages
|
||||
if test -d $p; then
|
||||
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}$p"
|
||||
fi
|
||||
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.5/site-packages "" $1
|
||||
}
|
||||
|
||||
toPythonPath() {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
addPythonPath() {
|
||||
local p=$1/lib/python2.4/site-packages
|
||||
if test -d $p; then
|
||||
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}$p"
|
||||
fi
|
||||
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.4/site-packages "" $1
|
||||
}
|
||||
|
||||
toPythonPath() {
|
||||
|
||||
Reference in New Issue
Block a user