summaryrefslogtreecommitdiffhomepage
path: root/subr.ex/ex_pkg.subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr.ex/ex_pkg.subr')
-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;