mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 13:28:12 -05:00
Merge branch 'maint'
This commit is contained in:
commit
5389cdf654
@ -772,12 +772,14 @@ tidy_install() {
|
|||||||
|
|
||||||
if [ "$(check_option strip)" = "y" ]; then
|
if [ "$(check_option strip)" = "y" ]; then
|
||||||
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
||||||
for file in $(find {,usr/{,local/},opt/*/}{bin,lib,sbin} -type f 2>/dev/null || true); do
|
local binary bindirs
|
||||||
case "$(file -biz "$file")" in
|
bindirs="bin lib sbin usr/bin usr/lib usr/sbin usr/local/bin usr/local/lib usr/local/sbin opt/*/bin opt/*/lib opt/*/sbin"
|
||||||
|
find ${bindirs} -type f 2>/dev/null | while read binary ; do
|
||||||
|
case "$(file -biz "$binary")" in
|
||||||
*application/x-sharedlib*) # Libraries
|
*application/x-sharedlib*) # Libraries
|
||||||
/usr/bin/strip --strip-debug "$file";;
|
/usr/bin/strip --strip-debug "$binary";;
|
||||||
*application/x-executable*) # Binaries
|
*application/x-executable*) # Binaries
|
||||||
/usr/bin/strip "$file";;
|
/usr/bin/strip "$binary";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user