[redhat-rpm-config: 139/215] Speed up static archive stripping processing (#517101) - only bother processing files named *.a inst
Panu Matilainen
pmatilai at fedoraproject.org
Wed Apr 2 10:30:04 UTC 2014
commit 82f9946bc0fef76f89fb467534a760f8305e78d7
Author: Panu Matilainen <pmatilai at redhat.com>
Date: Fri Jan 22 15:26:58 2010 +0200
Speed up static archive stripping processing (#517101)
- only bother processing files named *.a instead of everything in buildroot
- patch from Adam Jackson
brp-strip-static-archive | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/brp-strip-static-archive b/brp-strip-static-archive
index 786e7f3..150e700 100755
--- a/brp-strip-static-archive
+++ b/brp-strip-static-archive
@@ -8,7 +8,7 @@ fi
[ -z "$STRIP" ] && STRIP=strip
# Strip static libraries.
-for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \
+for f in `find $RPM_BUILD_ROOT -name \*.a -a -exec file {} \; | \
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep 'current ar archive' | \
sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p'`; do
More information about the scm-commits
mailing list