From f6c83d9ee03c1b98f3828ce5604460a84e62e396 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 16 Jan 2023 11:23:33 +0100 Subject: [PATCH] modbuild: PMODULES_{TMP,DISTFILESDIR} environment variables The environment variables PMODULES_TMPDIR and PMODULES_DISTFILESDIR can now be used to override the values in the configuration file. --- Pmodules/modbuild.in | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index c202e03..f374ba5 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -24,20 +24,18 @@ else fi PATH+='/usr/bin:/bin:/usr/sbin:/sbin' PATH+=":${mydir}" -PATH+=":${mydir}/../lib:${mydir}/../config" +PATH+=":${mydir}/../lib" + +# path of config files +PATH+=":${mydir}/../config" source libstd.bash || { echo "Oops: cannot source library -- '$_'" 1>&2; exit 3; } - -# can be set in the configuration file -declare PMODULES_DISTFILESDIR='' -declare PMODULES_TMPDIR='' - source libpbuild.bash || \ std::die 3 "Oops: cannot source library -- '$_'" -# save arguments, (still) required for building dependencies +# save arguments, required for building dependencies declare -r ARGS="$@" ##############################################################################