X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FExtUtils%2FMM_Cygwin.pm;h=3d03d321f3713e54adceea3ffa57cae02bd7fa7e;hb=afa6035dfed8c8b76d51a5825dc9d138e642958c;hp=45833ca2593e09ac4dab91db3c716a5f979fcc5c;hpb=bbc7dcd2bd43efd6773e46b614c6eb1db5af78d2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/ExtUtils/MM_Cygwin.pm b/lib/ExtUtils/MM_Cygwin.pm index 45833ca..3d03d32 100644 --- a/lib/ExtUtils/MM_Cygwin.pm +++ b/lib/ExtUtils/MM_Cygwin.pm @@ -12,12 +12,13 @@ require Exporter; require ExtUtils::MakeMaker; ExtUtils::MakeMaker->import(qw( $Verbose &neatvalue)); +use File::Spec; + unshift @MM::ISA, 'ExtUtils::MM_Cygwin'; sub canonpath { - my($self,$path) = @_; - $path =~ s|\\|/|g; - return $self->ExtUtils::MM_Unix::canonpath($path); + shift; + return File::Spec->canonpath(@_); } sub cflags { @@ -46,9 +47,9 @@ sub manifypods { my($dist); my($pod2man_exe); if (defined $self->{PERL_SRC}) { - $pod2man_exe = $self->catfile($self->{PERL_SRC},'pod','pod2man'); + $pod2man_exe = File::Spec->catfile($self->{PERL_SRC},'pod','pod2man'); } else { - $pod2man_exe = $self->catfile($Config{scriptdirexp},'pod2man'); + $pod2man_exe = File::Spec->catfile($Config{scriptdirexp},'pod2man'); } unless ($self->perl_script($pod2man_exe)) { # No pod2man but some MAN3PODS to be installed