From 82f9946bc0fef76f89fb467534a760f8305e78d7 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Jan 22 2010 13:26:58 +0000 Subject: Speed up static archive stripping processing (#517101) - only bother processing files named *.a instead of everything in buildroot - patch from Adam Jackson --- 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