index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Fyfe <andrew@neptune-one.net> | 2007-04-16 22:12:15 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-16 22:12:15 -0400 |
commit | 721ceee1e2c9b18425d84cf39f6541b2f04072b3 (patch) | |
tree | 9b7e0f052420ed6f739fef5badcc7ebb991d7b6d /scripts/makepkg.in | |
parent | 8bd0f3921f42ba40413bf82da9bf0bee457a2a9b (diff) |
-rwxr-xr-x | scripts/makepkg.in | 17 |
diff --git a/scripts/makepkg.in b/scripts/makepkg.in index 7bfdf000..831b35b8 100755 --- a/scripts/makepkg.in +++ b/scripts/makepkg.in @@ -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 |