mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
improve my rewrite of installhtml’s dir scan
This commit is contained in:
parent
73e3ba067f
commit
7e7b3f792c
12
installhtml
12
installhtml
@ -500,12 +500,12 @@ sub installdir {
|
||||
no_upwards($_) or next;
|
||||
my $is_dir = -d "$podroot/$dir/$_";
|
||||
next if $is_dir and not $recurse;
|
||||
my $target = (
|
||||
$is_dir ? \@dirlist :
|
||||
s/\.pod$// ? \@podlist :
|
||||
s/\.pm$// ? \@pmlist :
|
||||
undef
|
||||
);
|
||||
my $target
|
||||
= $is_dir ? \@dirlist
|
||||
: s/\.pod$// ? \@podlist
|
||||
: s/\.pm$// ? \@pmlist
|
||||
: undef
|
||||
;
|
||||
push @$target, "$dir/$_" if $target;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user