4 # a) files listed in MANIFEST which don't exist
5 # b) files which exist but which aren't in MANIFEST
11 use constant SKIP => 125;
14 GetOptions('exitstatus!', \$exitstatus)
15 or die "$0 [--exitstatus]";
21 open my $fh, '<', 'MANIFEST' or die "Can't read MANIFEST: $!\n";
22 for my $line (<$fh>) {
23 my ($file) = $line =~ /^(\S+)/;
27 print "$file from MANIFEST doesn't exist\n";
34 return if $_ eq '.mailmap';
35 return if $_ eq '.gitignore';
36 return if $_ eq '.gitattributes';
37 return if $_ eq '.git_patch';
39 my $x = $File::Find::name =~ s!^\./!!r;
40 return if $x =~ /^\.git\b/;
41 return if $x =~ m{^\.github/};
44 print "$x\t\tnot in MANIFEST\n";
48 my $exitcode = $exitstatus ? $missing + $bonus : 0;
50 # We can't (meaningfully) exit with codes above 255, so we're going to have to
51 # clamp them to some range whatever we do. So as we need the code anyway, use
52 # 124 as our maximum instead, and then we can run as a useful git bisect run