diff options
author | Simon Stelling <blubb@gentoo.org> | 2006-04-15 19:23:03 +0000 |
---|---|---|
committer | Simon Stelling <blubb@gentoo.org> | 2006-04-15 19:23:03 +0000 |
commit | a160f463b9cac6b69539437d5e7a269655ec8d28 (patch) | |
tree | d6e6cd1a6f0b5421ad373aa12e47fdeae7f3e777 | |
parent | f2f546e5e18ef1684def5c2f4a6528d665ff8dd0 (diff) | |
download | portage-a160f463b9cac6b69539437d5e7a269655ec8d28.tar.gz portage-a160f463b9cac6b69539437d5e7a269655ec8d28.tar.bz2 portage-a160f463b9cac6b69539437d5e7a269655ec8d28.zip |
use strip_duplicate_slashes instead of "for 1 2 3 do var=${var/\/\///}"
svn path=/main/trunk/; revision=3157
-rwxr-xr-x | bin/ebuild.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 9d27491ad..f54110273 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -466,11 +466,7 @@ econf() { export CONF_PREFIX [ "${CONF_LIBDIR:0:1}" != "/" ] && CONF_LIBDIR="/${CONF_LIBDIR}" - CONF_LIBDIR_RESULT="${CONF_PREFIX}${CONF_LIBDIR}" - for x in 1 2 3; do - # The escaping is weird. It will break if you escape the last one. - CONF_LIBDIR_RESULT="${CONF_LIBDIR_RESULT//\/\///}" - done + CONF_LIBDIR_RESULT="$(strip_duplicate_slashes ${CONF_PREFIX}${CONF_LIBDIR})" LOCAL_EXTRA_ECONF="--libdir=${CONF_LIBDIR_RESULT} ${LOCAL_EXTRA_ECONF}" fi |