From 0432cc3785f8e883bdb20a5e0f3a0fe2716cb85b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 26 May 2010 15:47:59 +0200 Subject: [PATCH] xbps-src: remove dup strip_files() in pkgtarget_funcs.sh. --- xbps-src/shutils/pkgtarget_funcs.sh.in | 28 -------------------------- 1 file changed, 28 deletions(-) diff --git a/xbps-src/shutils/pkgtarget_funcs.sh.in b/xbps-src/shutils/pkgtarget_funcs.sh.in index a745014aa1..4f064603db 100644 --- a/xbps-src/shutils/pkgtarget_funcs.sh.in +++ b/xbps-src/shutils/pkgtarget_funcs.sh.in @@ -25,34 +25,6 @@ . ${XBPS_SHUTILSDIR}/tmpl_funcs.sh -strip_files() -{ - local lver - - if ! command -v strip 2>&1 >/dev/null; then - return 0 - fi - [ -n "$nostrip" ] && return 0 - - if [ -n "$revision" ]; then - lver="${version}_${revision}" - else - lver="${version}" - fi - - msg_normal "Package '$pkgname ($lver)': stripping files, please wait..." - for f in $(find ${DESTDIR} -type f); do - case "$(file -biz $f)" in - application/x-executable*) - strip $f && \ - echo " Stripped executable: $(basename $f)";; - application/x-sharedlib*|application/x-archive*) - strip -S $f && \ - echo " Stripped library: $(basename $f)";; - esac - done -} - # # Installs a pkg by reading its build template file. #