1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-03 02:41:53 -05:00

makepkg: BSD find compatibility fix

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2010-03-29 15:17:22 +10:00 committed by Dan McGee
parent 753599b504
commit 90aca75cb9

View File

@ -844,7 +844,7 @@ tidy_install() {
if [[ $(check_option strip) = y && -n ${STRIP_DIRS[*]} ]]; then
msg2 "$(gettext "Stripping unneeded symbols from binaries and libraries...")"
local binary
find ${STRIP_DIRS[@]} -type f -writable 2>/dev/null | while read binary ; do
find ${STRIP_DIRS[@]} -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -biz "$binary")" in
*compressed-encoding*) # Skip compressed binaries
;;