summaryrefslogtreecommitdiff
path: root/Porting
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-06 07:55:03 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-06 07:55:03 +0000
commit6501254efd518ae7cec2505f294d8200779717b9 (patch)
tree689973ef296761eddfc067f6ab39cad94b32a76a /Porting
parent93209f3997221ac28a3ff713e663b011e06679f1 (diff)
downloadperl-6501254efd518ae7cec2505f294d8200779717b9.tar.gz
Handle also extra directories et alia.
p4raw-id: //depot/perl@18836
Diffstat (limited to 'Porting')
-rw-r--r--Porting/manicheck17
1 files changed, 11 insertions, 6 deletions
diff --git a/Porting/manicheck b/Porting/manicheck
index 20125d8cf8..e2a33ec678 100644
--- a/Porting/manicheck
+++ b/Porting/manicheck
@@ -36,10 +36,17 @@ help() if $h;
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:$.:$_";
}
@@ -50,18 +57,16 @@ close(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) {