Remove redundant trailing slashes from ${D}. (trunk r7890)
authorZac Medico <zmedico@gentoo.org>
Fri, 5 Oct 2007 01:44:47 +0000 (01:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 5 Oct 2007 01:44:47 +0000 (01:44 -0000)
svn path=/main/branches/2.1.2/; revision=7923

bin/ebuild.sh

index f9829fee482843f33a7d78ab503ad03b371060ca..3f5352b2915bae80a8bd3847e26936776ae121af 100755 (executable)
@@ -416,10 +416,13 @@ keepdir() {
        local x
        if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then
                shift
-               find "$@" -type d -printf "${D}/%p/.keep_${CATEGORY}_${PN}-${SLOT}\n" | tr "\n" "\0" | $XARGS -0 -n100 touch || die "Failed to recursively create .keep files"
+               find "$@" -type d -printf "${D}%p/.keep_${CATEGORY}_${PN}-${SLOT}\n" \
+                       | tr "\n" "\0" | ${XARGS} -0 -n100 touch || \
+                       die "Failed to recursively create .keep files"
        else
                for x in "$@"; do
-                       touch "${D}/${x}/.keep_${CATEGORY}_${PN}-${SLOT}" || die "Failed to create .keep in ${D}/${x}"
+                       touch "${D}${x}/.keep_${CATEGORY}_${PN}-${SLOT}" || \
+                               die "Failed to create .keep in ${D}${x}"
                done
        fi
 }
@@ -644,21 +647,21 @@ einstall() {
 
        if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then
                if [ "${PORTAGE_DEBUG}" == "1" ]; then
-                       ${MAKE:-make} -n prefix="${D}/usr" \
-                               datadir="${D}/usr/share" \
-                               infodir="${D}/usr/share/info" \
-                               localstatedir="${D}/var/lib" \
-                               mandir="${D}/usr/share/man" \
-                               sysconfdir="${D}/etc" \
+                       ${MAKE:-make} -n prefix="${D}usr" \
+                               datadir="${D}usr/share" \
+                               infodir="${D}usr/share/info" \
+                               localstatedir="${D}var/lib" \
+                               mandir="${D}usr/share/man" \
+                               sysconfdir="${D}etc" \
                                ${LOCAL_EXTRA_EINSTALL} \
                                "$@" install
                fi
-               ${MAKE:-make} prefix="${D}/usr" \
-                       datadir="${D}/usr/share" \
-                       infodir="${D}/usr/share/info" \
-                       localstatedir="${D}/var/lib" \
-                       mandir="${D}/usr/share/man" \
-                       sysconfdir="${D}/etc" \
+               ${MAKE:-make} prefix="${D}usr" \
+                       datadir="${D}usr/share" \
+                       infodir="${D}usr/share/info" \
+                       localstatedir="${D}var/lib" \
+                       mandir="${D}usr/share/man" \
+                       sysconfdir="${D}etc" \
                        ${LOCAL_EXTRA_EINSTALL} \
                        "$@" install || die "einstall failed"
        else