require VMS::Filespec if $Is_VMS;
use vars qw($VERSION);
-$VERSION = '0.07';
+$VERSION = '1.41';
+$VERSION = eval $VERSION;
sub _is_prefix {
my ($self, $path, $prefix) = @_;
$prefix = VMS::Filespec::unixify($prefix);
$path = VMS::Filespec::unixify($path);
}
- $prefix =~ m!/+! && $prefix =~ s!/+!/!g;
- $path =~ m!/+! && $path =~ s!/+!/!g;
+
+ # Sloppy Unix path normalization.
+ $prefix =~ s{/+}{/}g;
+ $path =~ s{/+}{/}g;
return 1 if substr($path, 0, length($prefix)) eq $prefix;
return(0);
}
-sub _is_doc {
+sub _is_doc {
my ($self, $path) = @_;
my $man1dir = $Config{man1direxp};
my $man3dir = $Config{man3direxp};
($man3dir && $self->_is_prefix($path, $man3dir))
? 1 : 0)
}
-
+
sub _is_type {
my ($self, $path, $type) = @_;
return 1 if $type eq "all";
}
# Read the .packlist
- $self->{$module}{packlist} =
+ $self->{$module}{packlist} =
ExtUtils::Packlist->new($File::Find::name);
};
my (@files);
foreach my $file (keys(%{$self->{$module}{packlist}})) {
push(@files, $file)
- if ($self->_is_type($file, $type) &&
+ if ($self->_is_type($file, $type) &&
$self->_is_under($file, @under));
}
return(@files);