Cleanup: Use += to append to envHooks

This commit is contained in:
Eelco Dolstra 2014-07-08 14:20:05 +02:00
parent 2db867eec9
commit e3f7dbbac8
33 changed files with 35 additions and 35 deletions

View File

@ -2,4 +2,4 @@ addRLibPath () {
addToSearchPath R_LIBS_SITE $1/library addToSearchPath R_LIBS_SITE $1/library
} }
envHooks=(${envHooks[@]} addRLibPath) envHooks+=(addRLibPath)

View File

@ -14,7 +14,7 @@ addCVars () {
fi fi
} }
envHooks=(${envHooks[@]} addCVars) envHooks+=(addCVars)
# Note: these come *after* $out in the PATH (see setup.sh). # Note: these come *after* $out in the PATH (see setup.sh).

View File

@ -11,7 +11,7 @@ crossAddCVars () {
fi fi
} }
crossEnvHooks=(${crossEnvHooks[@]} crossAddCVars) crossEnvHooks+=(crossAddCVars)
crossStripDirs() { crossStripDirs() {
local dirs="$1" local dirs="$1"

View File

@ -14,7 +14,7 @@ addCVars () {
fi fi
} }
envHooks=(${envHooks[@]} addCVars) envHooks+=(addCVars)
# Note: these come *after* $out in the PATH (see setup.sh). # Note: these come *after* $out in the PATH (see setup.sh).

View File

@ -10,4 +10,4 @@ addPkgToClassPath () {
done done
} }
envHooks=(''${envHooks[@]} addPkgToClassPath) envHooks+=(addPkgToClassPath)

View File

@ -5,4 +5,4 @@ addDbusIncludePath () {
fi fi
} }
envHooks=(${envHooks[@]} addDbusIncludePath) envHooks+=(addDbusIncludePath)

View File

@ -10,4 +10,4 @@ addGuileLibPath () {
fi fi
} }
envHooks=(${envHooks[@]} addGuileLibPath) envHooks+=(addGuileLibPath)

View File

@ -5,4 +5,4 @@ addGuileLibPath () {
fi fi
} }
envHooks=(${envHooks[@]} addGuileLibPath) envHooks+=(addGuileLibPath)

View File

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl addToSearchPath PERL5LIB $1/lib/perl5/site_perl
} }
envHooks=(${envHooks[@]} addPerlLibPath) envHooks+=(addPerlLibPath)

View File

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl addToSearchPath PERL5LIB $1/lib/perl5/site_perl
} }
envHooks=(${envHooks[@]} addPerlLibPath) envHooks+=(addPerlLibPath)

View File

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl addToSearchPath PERL5LIB $1/lib/perl5/site_perl
} }
envHooks=(${envHooks[@]} addPerlLibPath) envHooks+=(addPerlLibPath)

View File

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/perl5/site_perl addToSearchPath PERL5LIB $1/lib/perl5/site_perl
} }
envHooks=(${envHooks[@]} addPerlLibPath) envHooks+=(addPerlLibPath)

View File

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/lib/site_perl addToSearchPath PERL5LIB $1/lib/site_perl
} }
envHooks=(${envHooks[@]} addPerlLibPath) envHooks+=(addPerlLibPath)

View File

@ -2,4 +2,4 @@ addPerlLibPath () {
addToSearchPath PERL5LIB $1/@libPrefix@ addToSearchPath PERL5LIB $1/@libPrefix@
} }
envHooks=(${envHooks[@]} addPerlLibPath) envHooks+=(addPerlLibPath)

View File

@ -12,4 +12,4 @@ toPythonPath() {
echo $result echo $result
} }
envHooks=(${envHooks[@]} addPythonPath) envHooks+=(addPythonPath)

View File

@ -12,4 +12,4 @@ toPythonPath() {
echo $result echo $result
} }
envHooks=(${envHooks[@]} addPythonPath) envHooks+=(addPythonPath)

View File

@ -12,4 +12,4 @@ toPythonPath() {
echo $result echo $result
} }
envHooks=(${envHooks[@]} addPythonPath) envHooks+=(addPythonPath)

View File

@ -12,4 +12,4 @@ toPythonPath() {
echo $result echo $result
} }
envHooks=(${envHooks[@]} addPythonPath) envHooks+=(addPythonPath)

View File

@ -12,4 +12,4 @@ toPythonPath() {
echo $result echo $result
} }
envHooks=(${envHooks[@]} addPythonPath) envHooks+=(addPythonPath)

View File

@ -12,4 +12,4 @@ toPythonPath() {
echo $result echo $result
} }
envHooks=(${envHooks[@]} addPythonPath) envHooks+=(addPythonPath)

View File

@ -5,5 +5,5 @@ addGstreamer1LibPath () {
fi fi
} }
envHooks=(${envHooks[@]} addGstreamer1LibPath) envHooks+=(addGstreamer1LibPath)

View File

@ -5,4 +5,4 @@ addGstreamerLibPath () {
fi fi
} }
envHooks=(${envHooks[@]} addGstreamerLibPath) envHooks+=(addGstreamerLibPath)

View File

@ -23,5 +23,5 @@ if test -z "$libxmlHookDone"; then
# xmllint and xsltproc from looking in /etc/xml/catalog. # xmllint and xsltproc from looking in /etc/xml/catalog.
export XML_CATALOG_FILES export XML_CATALOG_FILES
if test -z "$XML_CATALOG_FILES"; then XML_CATALOG_FILES=" "; fi if test -z "$XML_CATALOG_FILES"; then XML_CATALOG_FILES=" "; fi
envHooks=(${envHooks[@]} addXMLCatalogs) envHooks+=(addXMLCatalogs)
fi fi

View File

@ -10,4 +10,4 @@ addSlibPath () {
fi fi
} }
envHooks=(${envHooks[@]} addSlibPath) envHooks+=(addSlibPath)

View File

@ -33,7 +33,7 @@ collectNixLispLDLP () {
export NIX_LISP_COMMAND NIX_LISP CL_SOURCE_REGISTRY NIX_LISP_ASDF export NIX_LISP_COMMAND NIX_LISP CL_SOURCE_REGISTRY NIX_LISP_ASDF
envHooks=(envHooks[@] addASDFPaths setLisp collectNixLispLDLP) envHooks+=(addASDFPaths setLisp collectNixLispLDLP)
mkdir -p "$HOME"/.cache/common-lisp || HOME="$TMP/.temp-$USER-home" mkdir -p "$HOME"/.cache/common-lisp || HOME="$TMP/.temp-$USER-home"
mkdir -p "$HOME"/.cache/common-lisp mkdir -p "$HOME"/.cache/common-lisp

View File

@ -2,4 +2,4 @@ addOcamlMakefile () {
export OCAMLMAKEFILE="@out@/include/OCamlMakefile" export OCAMLMAKEFILE="@out@/include/OCamlMakefile"
} }
envHooks=(${envHooks[@]} addOcamlMakefile) envHooks+=(addOcamlMakefile)

View File

@ -2,4 +2,4 @@ addAclocals () {
addToSearchPathWithCustomDelimiter : ACLOCAL_PATH $1/share/aclocal addToSearchPathWithCustomDelimiter : ACLOCAL_PATH $1/share/aclocal
} }
envHooks=(${envHooks[@]} addAclocals) envHooks+=(addAclocals)

View File

@ -4,7 +4,7 @@ addPkgConfigPath () {
} }
if test -n "$crossConfig"; then if test -n "$crossConfig"; then
crossEnvHooks=(${crossEnvHooks[@]} addPkgConfigPath) crossEnvHooks+=(addPkgConfigPath)
else else
envHooks=(${envHooks[@]} addPkgConfigPath) envHooks+=(addPkgConfigPath)
fi fi

View File

@ -43,7 +43,7 @@ stdenv.mkDerivation {
fi fi
} }
envHooks=(''${envHooks[@]} addOCamlPath) envHooks+=(addOCamlPath)
''; '';
meta = { meta = {

View File

@ -2,4 +2,4 @@ addNodePath () {
addToSearchPath NODE_PATH $1/lib/node_modules addToSearchPath NODE_PATH $1/lib/node_modules
} }
envHooks=(${envHooks[@]} addNodePath) envHooks+=(addNodePath)

View File

@ -18,5 +18,5 @@ if test -z "$sgmlHookDone"; then
export ftp_proxy=http://nodtd.invalid/ export ftp_proxy=http://nodtd.invalid/
export SGML_CATALOG_FILES export SGML_CATALOG_FILES
envHooks=(${envHooks[@]} addSGMLCatalogs) envHooks+=(addSGMLCatalogs)
fi fi

View File

@ -4,4 +4,4 @@ addTeXMFPath () {
fi fi
} }
envHooks=(${envHooks[@]} addTeXMFPath) envHooks+=(addTeXMFPath)

View File

@ -4,4 +4,4 @@ addTeXMFPath () {
fi fi
} }
envHooks=(${envHooks[@]} addTeXMFPath) envHooks+=(addTeXMFPath)