From ddee37d57d9c261ab2abdcb802d0810969b676c9 Mon Sep 17 00:00:00 2001
From: Thierry Vignaud <tvignaud@mandriva.org>
Date: Mon, 2 Aug 2004 04:35:37 +0000
Subject: - simplify - fix typo in comment

---
 strip_files | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

(limited to 'strip_files')

diff --git a/strip_files b/strip_files
index 0898ce1..aa72774 100755
--- a/strip_files
+++ b/strip_files
@@ -64,14 +64,10 @@ chdir($RPM_BUILD_ROOT) or die "Can't cd to $ENV{RPM_BUILD_ROOT}: $!";
 @shared_libs = @executables = @static_libs = ();
 find(\&testfile, $RPM_BUILD_ROOT);
 
-foreach (@shared_libs) {
-    # Note that all calls to strip on shared libs
-    # *must* inclde the --strip-unneeded.
-    system("strip", "--remove-section=.comment", "--remove-section=.note", "--strip-unneeded",$_);
-}
+# Note that all calls to strip on shared libs *must* include the --strip-unneeded.
+system("strip", "--remove-section=.comment", "--remove-section=.note", "--strip-unneeded",$_) foreach @shared_libs;
+
+system("strip", "--remove-section=.comment", "--remove-section=.note",$_) foreach @executables;
 
-foreach (@executables) {
-    system("strip", "--remove-section=.comment", "--remove-section=.note",$_);
-}
 
 # strip_files ends here
-- 
cgit v1.2.1