strip leading slash in output
authorMike Frysinger <vapier@gentoo.org>
Sun, 14 May 2006 13:42:52 +0000 (13:42 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 May 2006 13:42:52 +0000 (13:42 -0000)
svn path=/main/trunk/; revision=3352

bin/prepstrip

index 0cca3292a3fdc6609f311fc369660e833b6a894b..0a296b3481f573255729166f79d89a7f6354a4d0 100755 (executable)
@@ -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