diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-09-04 12:15:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-09-04 12:15:04 +0000 |
commit | 42c7351f22190594d9dab60338cc3ca299a004c6 (patch) | |
tree | ae5123c1d40f9c266c33cf87b9e09636a9b29a0c /strip_files | |
parent | 55551177056c04ec933d071f09c3f3b8cc5ee7aa (diff) | |
download | spec-helper-42c7351f22190594d9dab60338cc3ca299a004c6.tar spec-helper-42c7351f22190594d9dab60338cc3ca299a004c6.tar.gz spec-helper-42c7351f22190594d9dab60338cc3ca299a004c6.tar.bz2 spec-helper-42c7351f22190594d9dab60338cc3ca299a004c6.tar.xz spec-helper-42c7351f22190594d9dab60338cc3ca299a004c6.zip |
fix EXCLUDE_FROM_STRIP in strip_filesv7_2
Diffstat (limited to 'strip_files')
-rwxr-xr-x | strip_files | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/strip_files b/strip_files index 1178ad2..e681923 100755 --- a/strip_files +++ b/strip_files @@ -16,7 +16,7 @@ use File::Find; # for use by File::Find. It'll fill the following 3 arrays with anything # it finds: my (@shared_libs, @executables, @static_libs); -my $exclude_files=defined($ENV{EXCLUDE_FROM_STRIP}) ? split(' ',$ENV{EXCLUDE_FROM_STRIP}) : undef; +my @exclude_files = split(' ',$ENV{EXCLUDE_FROM_STRIP}); sub testfile { @@ -24,12 +24,10 @@ sub testfile { $fn="$File::Find::dir/$_"; - if ($exclude_files) { - # See if we were asked to exclude this file. - # Note that we have to test on the full filename, including directory. - foreach my $f ($exclude_files) { - return if ($fn=~m/\Q$f\E/); - } + # See if we were asked to exclude this file. + # Note that we have to test on the full filename, including directory. + foreach my $f (@exclude_files) { + return if ($fn=~m/\Q$f\E/); } # Does its filename look like a shared library? |