diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-09-04 22:10:37 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-09-12 22:14:32 +0300 |
commit | 1ed8e949399ec73afb736b6ce2b15b93d16b012a (patch) | |
tree | 21d7514917956e3a909f99dfddfb756c22d75210 /eclass | |
parent | bazel.eclass: simplify EPREFIX usage (diff) | |
download | gentoo-1ed8e949399ec73afb736b6ce2b15b93d16b012a.tar.gz gentoo-1ed8e949399ec73afb736b6ce2b15b93d16b012a.tar.bz2 gentoo-1ed8e949399ec73afb736b6ce2b15b93d16b012a.zip |
rebar.eclass: simplify EPREFIX usage
EPREFIX is never slash terminated, in all EAPIs.
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/rebar.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass index 5ee99aed445c..c982dea5d1fd 100644 --- a/eclass/rebar.eclass +++ b/eclass/rebar.eclass @@ -68,7 +68,7 @@ _rebar_find_dep() { local p local result - pushd "${EPREFIX%/}/$(get_erl_libs)" >/dev/null || return 1 + pushd "${EPREFIX}/$(get_erl_libs)" >/dev/null || return 1 for p in ${pn} ${pn}-*; do if [[ -d ${p} ]]; then # Ensure there's at most one matching. @@ -107,7 +107,7 @@ erebar() { (( $# > 0 )) || die "erebar: at least one target is required" - local -x ERL_LIBS="${EPREFIX%/}/$(get_erl_libs)" + local -x ERL_LIBS="${EPREFIX}/$(get_erl_libs)" [[ ${1} == eunit ]] && local -x ERL_LIBS="." rebar -v skip_deps=true "$@" || die -n "rebar $@ failed" @@ -128,7 +128,7 @@ rebar_fix_include_path() { local pn="${1}" local rebar_config="${2:-rebar.config}" - local erl_libs="${EPREFIX%/}/$(get_erl_libs)" + local erl_libs="${EPREFIX}/$(get_erl_libs)" local p p="$(_rebar_find_dep "${pn}")" \ @@ -217,7 +217,7 @@ rebar_src_prepare() { rebar_src_configure() { debug-print-function ${FUNCNAME} "${@}" - local -x ERL_LIBS="${EPREFIX%/}/$(get_erl_libs)" + local -x ERL_LIBS="${EPREFIX}/$(get_erl_libs)" default } |