File tree Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -5132,6 +5132,7 @@ Makefile.SH A script that generates Makefile
5132
5132
malloc.c A version of malloc you might not want
5133
5133
malloc_ctl.h A version of malloc you might not want
5134
5134
MANIFEST This list of files
5135
+ MANIFEST.SKIP Patterns for files not included in this file
5135
5136
mathoms.c A home for binary-compatible code artifacts
5136
5137
META.json Distribution meta-data in JSON
5137
5138
META.yml Distribution meta-data in YAML
Original file line number Diff line number Diff line change
1
+ \.mailmap
2
+ \.gitignore
3
+ \.gitattributes
4
+ \.git_patch
5
+ ^\.git\b
6
+ ^\.github/
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use v5.14;
8
8
use warnings;
9
9
use File::Find;
10
10
use Getopt::Long;
11
+ use ExtUtils::Manifest ' maniskip' ;
11
12
use constant SKIP => 125;
12
13
13
14
my $exitstatus ;
@@ -17,6 +18,7 @@ GetOptions('exitstatus!', \$exitstatus)
17
18
my %files ;
18
19
my $missing = 0;
19
20
my $bonus = 0;
21
+ my $skip = maniskip;
20
22
21
23
open my $fh , ' <' , ' MANIFEST' or die " Can't read MANIFEST: $! \n " ;
22
24
for my $line (<$fh >) {
@@ -31,17 +33,11 @@ close $fh;
31
33
find {
32
34
wanted => sub {
33
35
return if -d ;
34
- return if $_ eq ' .mailmap' ;
35
- return if $_ eq ' .gitignore' ;
36
- return if $_ eq ' .gitattributes' ;
37
- return if $_ eq ' .git_patch' ;
38
-
39
- my $x = $File::Find::name =~ s ! ^\. /!! r ;
40
- return if $x =~ / ^\. git\b / ;
41
- return if $x =~ m { ^\. github/} ;
42
- return if $files {$x };
36
+ my $path = $File::Find::name =~ s ! ^\. /!! r ;
37
+ return if $skip -> ($path );
38
+ return if $files {$path };
43
39
++$bonus ;
44
- print " $x \t\t not in MANIFEST\n " ;
40
+ print " $path \t\t not in MANIFEST\n " ;
45
41
},
46
42
}, " ." ;
47
43
Original file line number Diff line number Diff line change 25
25
# correct the problem.
26
26
27
27
use Config;
28
+ use ExtUtils::Manifest ' maniskip' ;
28
29
BEGIN {
29
30
@INC = ' ..' if -f ' ../TestInit.pm' ;
30
31
}
@@ -85,14 +86,11 @@ SKIP: {
85
86
86
87
SKIP: {
87
88
find_git_or_skip(6);
89
+ my $skip = maniskip;
88
90
my %seen ; # De-dup ls-files output (can appear more than once)
89
91
my @repo = grep {
90
92
chomp ();
91
- !m {\. git_patch$} &&
92
- !m {\. gitattributes$} &&
93
- !m {\. gitignore$} &&
94
- !m {\. mailmap$} &&
95
- !m { ^\. github/} &&
93
+ !$skip -> ($_ ) &&
96
94
-e $_ &&
97
95
!$seen {$_ }++
98
96
} ` git ls-files` ;
You can’t perform that action at this time.
0 commit comments