diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-05-14 13:42:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-05-14 13:42:52 +0000 |
commit | 6ab80303472e7c4db134faf600852a968634fb4e (patch) | |
tree | 587ae2fb556e872b54b2b548bcd76c968d837200 | |
parent | e167085a0f43cc4daa728bbf1ecaf7f9d27dfb29 (diff) | |
download | portage-6ab80303472e7c4db134faf600852a968634fb4e.tar.gz portage-6ab80303472e7c4db134faf600852a968634fb4e.tar.bz2 portage-6ab80303472e7c4db134faf600852a968634fb4e.zip |
strip leading slash in output
svn path=/main/trunk/; revision=3352
-rwxr-xr-x | bin/prepstrip | 6 |
1 files changed, 3 insertions, 3 deletions
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 |