diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2008-02-10 14:10:48 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2008-02-10 14:10:48 +0000 |
commit | 845b81230df49ba65bd97d62fefc844f921a06bd (patch) | |
tree | e22dd43dbfceb07b17ed159cae001ee304817da5 /strip_files | |
parent | a6ece2ac948b0141008794d61084caff25938be1 (diff) | |
download | spec-helper-845b81230df49ba65bd97d62fefc844f921a06bd.tar spec-helper-845b81230df49ba65bd97d62fefc844f921a06bd.tar.gz spec-helper-845b81230df49ba65bd97d62fefc844f921a06bd.tar.bz2 spec-helper-845b81230df49ba65bd97d62fefc844f921a06bd.tar.xz spec-helper-845b81230df49ba65bd97d62fefc844f921a06bd.zip |
standardize code for rejecting wrong files
Diffstat (limited to 'strip_files')
-rwxr-xr-x | strip_files | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/strip_files b/strip_files index 2a2a0a6..50a57ef 100755 --- a/strip_files +++ b/strip_files @@ -26,10 +26,13 @@ sub expensive_test { } sub testfile() { - local $_ = $_; - return if -l $_ || -d $_; # Skip directories and symlinks always. - # reject excluded files + # skip symlinks + return if -l $_; + # skip directories + return if -d $_; + # skip excluded files return if $File::Find::name =~ $exclude_pattern; + my $fn = "$File::Find::dir/$_"; # Does its filename look like a shared library? |