From: Mike Frysinger Date: Sun, 14 May 2006 13:42:52 +0000 (-0000) Subject: strip leading slash in output X-Git-Tag: v2.1_rc2~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ab80303472e7c4db134faf600852a968634fb4e;p=portage.git strip leading slash in output svn path=/main/trunk/; revision=3352 --- diff --git a/bin/prepstrip b/bin/prepstrip index 0cca3292a..0a296b348 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -22,7 +22,7 @@ banner=1 save_elf_debug() { local x=$1 - local y="${D}/usr/lib/debug/${x:${#D}:${#x}}.debug" + local y="${D}usr/lib/debug/${x:${#D}+1}.debug" hasq splitdebug ${FEATURES} || return 0 @@ -65,11 +65,11 @@ for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find "${y}" -type f -name ' set +o noglob if [[ ${f} == *"current ar archive"* ]] ; then - vecho " ${x:${#D}:${#x}}" + vecho " ${x:${#D}+1}" [[ ${stripitbaby} -eq 1 ]] && ${STRIP} -g "${x}" fi if [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* ]] ; then - vecho " ${x:${#D}:${#x}}" + vecho " ${x:${#D}+1}" save_elf_debug "${x}" [[ ${stripitbaby} -eq 1 ]] && ${STRIP} ${PORTAGE_STRIP_FLAGS} "${x}" fi