mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
makepkg: remove grep calls from stripping binaries
Remove grep calls from stripping binaries and libraries, which will not work with localized strings. Clean up the find usage as well. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
8bd0f3921f
commit
721ceee1e2
@ -997,14 +997,15 @@ cd "$startdir"
|
||||
|
||||
# strip binaries
|
||||
if [ "$(check_option strip)" = "y" ]; then
|
||||
msg "$(gettext "Stripping debugging symbols from libraries...")"
|
||||
find pkg/{,usr,usr/local,opt/*}/lib -type f -not -name "*.dll" -not -name "*.exe" \
|
||||
-exec /usr/bin/strip --strip-debug '{}' \; 2>&1 \
|
||||
| grep -v "No such file" | grep -v "format not recognized"
|
||||
msg "$(gettext "Stripping symbols from binaries...")"
|
||||
find pkg/{,usr,usr/local,opt/*}/{bin,sbin} -type f -not -name "*.dll" -not -name "*.exe" \
|
||||
-exec /usr/bin/strip '{}' \; 2>&1 \
|
||||
| grep -v "No such file" | grep -v "format not recognized"
|
||||
msg "$(gettext "Stripping symbols from binaries and libraries...")"
|
||||
for file in $(find pkg/*/{bin,lib,sbin} -type f 2>/dev/null || true ); do
|
||||
case "$(file -biz "$file")" in
|
||||
*application/x-sharedlib*) # Libraries
|
||||
/usr/bin/strip --strip-debug "$file";;
|
||||
*application/x-executable*) # Binaries
|
||||
/usr/bin/strip "$file";;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
# remove libtool (.la) files
|
||||
|
Loading…
x
Reference in New Issue
Block a user