From 6370befc90e3cd9832eec9cad9cac5381ae252be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Sun, 19 Feb 2023 14:29:12 +0100 Subject: subr.ex/ex_pkg.subr:ex_pkg_load_vars(): prepend ${PREFIX_ROOT} w/ ${PWD%/}/ if not absolute pathname. --- subr.ex/ex_pkg.subr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subr.ex/ex_pkg.subr b/subr.ex/ex_pkg.subr index 3e7ee829..e3e90574 100644 --- a/subr.ex/ex_pkg.subr +++ b/subr.ex/ex_pkg.subr @@ -123,7 +123,12 @@ ex_pkg_load_vars() { nt64) DEFAULT_TARGET="x86_64-nt64-midipix"; ;; esac; - if [ "${PREFIX#/}" = "${PREFIX}" ]; then + if [ "${PREFIX_ROOT:+1}" ]\ + && [ "${PREFIX_ROOT#/}" = "${PREFIX_ROOT}" ]; then + PREFIX_ROOT="${PWD%/}/${PREFIX_ROOT}"; + fi; + if [ "${PREFIX:+1}" ]\ + && [ "${PREFIX#/}" = "${PREFIX}" ]; then PREFIX="${PWD%/}/${PREFIX}"; fi; -- cgit v1.2.3