p4raw-id: //depot/perl@18836
open(MANIFEST, "MANIFEST") or die "MANIFEST: $!";
my %mani;
+my %mand = qw(. 1);
+use File::Basename qw(dirname);
while (<MANIFEST>) {
if (/^(\S+)\t+(.+)$/) {
$mani{$1}++;
+ my $d = dirname($1);
+ while($d ne '.') {
+ $mand{$d}++;
+ $d = dirname($d);
+ }
} else {
warn "MANIFEST:$.:$_";
}
my %find;
use File::Find;
find(sub {
- if(-f $_) {
- my $f = $File::Find::name;
- $f =~ s:^\./::;
- $find{$f}++;
- }
+ my $n = $File::Find::name;
+ $n =~ s:^\./::;
+ $find{$n}++;
}, '.' );
my @xtra;
my @miss;
for (sort keys %find) {
- push @xtra, $_ unless $mani{$_};
+ push @xtra, $_ unless $mani{$_} || $mand{$_};
}
for (sort keys %mani) {