summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/rebar.eclass')
-rw-r--r--eclass/rebar.eclass8
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
}