Add a new Porting/podtidy to reformat pod using Pod::Tidy
[p5sagit/p5-mst-13.2.git] / Porting / manicheck
CommitLineData
4d1e77f9 1#!/usr/bin/perl
93209f39 2
3use strict;
4d1e77f9 4use warnings;
93209f39 5use File::Find;
93209f39 6
4d1e77f9 7open my $fh, 'MANIFEST' or die "Can't read MANIFEST: $!\n";
8my @files = map { (split)[0] } <$fh>;
9close $fh;
10for (@files) {
11 print "$_ from MANIFEST doesn't exist\n" if ! -f;
93209f39 12}
4d1e77f9 13my %files = map { $_ => 1 } @files;
14find {
15 wanted => sub {
16 my $x = $File::Find::name; $x =~ s/^..//;
17 return if -d;
18 return if $_ eq '.gitignore';
19 return if $x =~ /^\.git\b/;
20 print "$File::Find::name not in MANIFEST\n" if !$files{$x};
21 },
22}, ".";
93209f39 23