summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-04-29 19:52:06 -0500
committerDan McGee <dan@archlinux.org>2008-04-29 19:52:06 -0500
commit5389cdf65431e6daf219b9bb8f8985c6c33b1996 (patch)
tree32e091e33ab5d8e7fd5bc9588fb3806c18bbc242 /scripts
parent6b3118357614ad37149591ec457447387de0d2ac (diff)
parent27943a04d6dd135628c2313525ebffbcd76cc514 (diff)
downloadpacman-5389cdf65431e6daf219b9bb8f8985c6c33b1996.tar.xz
Merge branch 'maint'
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 1eb3d3a7..7db8b4d7 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -772,12 +772,14 @@ tidy_install() {
if [ "$(check_option strip)" = "y" ]; then
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
- case "$(file -biz "$file")" in
+ local binary bindirs
+ 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
- /usr/bin/strip --strip-debug "$file";;
+ /usr/bin/strip --strip-debug "$binary";;
*application/x-executable*) # Binaries
- /usr/bin/strip "$file";;
+ /usr/bin/strip "$binary";;
esac
done
fi