File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -31,24 +31,21 @@ use File::Basename;
31
31
require ' ./test.pl' ;
32
32
33
33
34
- my $manifest = ' ../MANIFEST ' ;
34
+ use ExtUtils::Manifest qw( maniread ) ;
35
35
36
- open my $m , ' <' , $manifest or die " Can't open '$manifest ': $! " ;
37
- my @files ;
38
- while (<$m >) {
39
- chomp ;
40
- my ($path ) = split /\t+/;
41
- push @files , $path ;
42
-
43
- }
44
- close $m or die $! ;
36
+ # Get MANIFEST
37
+ $ExtUtils::Manifest::Quiet = 1;
38
+ my @files = (keys (%{ maniread(" ../MANIFEST" ) }),
39
+ keys (%{ maniread(" ../Porting/MANIFEST.dev" ) }));
40
+ @files = sort @files ;
45
41
46
42
plan(scalar @files );
47
43
48
44
PATHNAME: for my $pathname (@files ) {
49
45
my @path_components = split (' /' ,$pathname );
50
46
my $filename = pop @path_components ;
51
47
for my $component (@path_components ) {
48
+ next if $component eq " .github" ;
52
49
if ($component =~ / \. / ) {
53
50
fail(" $pathname has directory components containing '.'" );
54
51
next PATHNAME;
You can’t perform that action at this time.
0 commit comments