diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-02 04:35:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-02 04:35:37 +0000 |
commit | ddee37d57d9c261ab2abdcb802d0810969b676c9 (patch) | |
tree | 371d576b50a6427ebae57f5d25372d87e9b2a9e9 | |
parent | 475d5b279433dbf5b755a0b52bbdce7e1ed49ab0 (diff) | |
download | spec-helper-ddee37d57d9c261ab2abdcb802d0810969b676c9.tar spec-helper-ddee37d57d9c261ab2abdcb802d0810969b676c9.tar.gz spec-helper-ddee37d57d9c261ab2abdcb802d0810969b676c9.tar.bz2 spec-helper-ddee37d57d9c261ab2abdcb802d0810969b676c9.tar.xz spec-helper-ddee37d57d9c261ab2abdcb802d0810969b676c9.zip |
- simplify
- fix typo in comment
-rwxr-xr-x | strip_files | 12 |
1 files changed, 4 insertions, 8 deletions
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 |