summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2023-02-19 14:29:12 +0100
committerLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2023-02-19 14:29:12 +0100
commit6370befc90e3cd9832eec9cad9cac5381ae252be (patch)
tree77e499e0fba9f76f10449f5a84b4d1b59f3c52d8
parent1aa81cefeb666b6a56abb477d1a2c319a957d9b2 (diff)
downloadmidipix_build-6370befc90e3cd9832eec9cad9cac5381ae252be.tar.bz2
midipix_build-6370befc90e3cd9832eec9cad9cac5381ae252be.tar.xz
subr.ex/ex_pkg.subr:ex_pkg_load_vars(): prepend ${PREFIX_ROOT} w/ ${PWD%/}/ if not absolute pathname.
-rw-r--r--subr.ex/ex_pkg.subr7
1 files changed, 6 insertions, 1 deletions
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;