From 288aa9fb981e71a58f1df9d0a0257e6968422d06 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Mar 2018 13:36:52 +0100 Subject: bin/build-packages: ignore "opt" for libraries, but also check symlinks --- bin/build-packages | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/build-packages b/bin/build-packages index 1ac8dc3..edfa913 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -446,7 +446,8 @@ while [ "${count}" -ne 0 ]; do while read -r pkgfile; do mkdir "${package_content_dir}/${pkgfile##*/}" tar -C "${package_content_dir}/${pkgfile##*/}" -xJf "${pkgfile}" 2>/dev/null - find "${package_content_dir}/${pkgfile##*/}" -type f \ + find "${package_content_dir}/${pkgfile##*/}" \ + -name 'opt' -prune , \ -exec objdump -x '{}' \; 2>/dev/null | \ grep -w 'NEEDED' | \ awk '{print $2}' | \ -- cgit v1.2.3-70-g09d2