summaryrefslogtreecommitdiff
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
parentremove all unneeded slashes, not only // or /// (diff)
downloadportage-multirepo-a160f463b9cac6b69539437d5e7a269655ec8d28.tar.gz
portage-multirepo-a160f463b9cac6b69539437d5e7a269655ec8d28.tar.bz2
portage-multirepo-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 9d27491a..f5411027 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