summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-04-15 19:23:03 +0000
committerSimon Stelling <blubb@gentoo.org>2006-04-15 19:23:03 +0000
commita160f463b9cac6b69539437d5e7a269655ec8d28 (patch)
treed6e6cd1a6f0b5421ad373aa12e47fdeae7f3e777
parentf2f546e5e18ef1684def5c2f4a6528d665ff8dd0 (diff)
downloadportage-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-xbin/ebuild.sh6
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