aboutsummaryrefslogtreecommitdiffstats
path: root/find-debuginfo.sh
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-08-25 22:45:55 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-08-25 22:45:55 +0000
commit0fb34e7de1b7d8028d3c9dfcbed12bd4c660c931 (patch)
tree0259e74964e1e5028c938487b96a4f11a69133a6 /find-debuginfo.sh
parentc8b830db16bca9d5dc93290cbe80612f74e8cc6e (diff)
downloadrpm-setup-0fb34e7de1b7d8028d3c9dfcbed12bd4c660c931.tar
rpm-setup-0fb34e7de1b7d8028d3c9dfcbed12bd4c660c931.tar.gz
rpm-setup-0fb34e7de1b7d8028d3c9dfcbed12bd4c660c931.tar.bz2
rpm-setup-0fb34e7de1b7d8028d3c9dfcbed12bd4c660c931.tar.xz
rpm-setup-0fb34e7de1b7d8028d3c9dfcbed12bd4c660c931.zip
strip shared libs too, really ship with eu-strip'ed binaries & libs
Diffstat (limited to 'find-debuginfo.sh')
-rwxr-xr-xfind-debuginfo.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/find-debuginfo.sh b/find-debuginfo.sh
index fd5c8d2..4900ff3 100755
--- a/find-debuginfo.sh
+++ b/find-debuginfo.sh
@@ -16,9 +16,9 @@ echo -n > $SOURCEFILE
[[ -n "$EXCLUDE_FROM_STRIP" ]] && \
EXCLUDE_REGEXP=`perl -e 'print "(", join("|", @ARGV), ")"' $EXCLUDE_FROM_STRIP`
-# Strip ELF binaries
+# Strip ELF binaries and shared libs
for f in `find $RPM_BUILD_ROOT -path "${debugdir}" -prune -o -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
- sed -n -e 's/^\(.*\):[ ]*.*ELF.* executable.*, not stripped/\1/p'`
+ sed -n -e 's/^\(.*\):[ ]*.*ELF.* \(executable\|shared object\).*, not stripped/\1/p'`
do
dn=$(dirname $f | sed -n -e "s#^$RPM_BUILD_ROOT##p")
bn=$(basename $f .debug).debug
@@ -37,8 +37,8 @@ do
eu-strip -f "${debugfn}" "$f" -o $f.stripped || :
chmod u-w "$f"
fi
- [[ -n "$EXCLUDE_REGEXP" ]] && \
- { echo $f | egrep -qv "$EXCLUDE_REGEXP"; } && mv -f $f.stripped $f
+ { [[ -z "$EXCLUDE_REGEXP" ]] || \
+ { echo $f | egrep -qv "$EXCLUDE_REGEXP"; } } && mv -f $f.stripped $f
rm -f $f.stripped
done