Fix generated Makefile.PL on win32. RT#65456
Tomas Doran [Fri, 21 Oct 2011 22:51:37 +0000 (15:51 -0700)]
Changes
lib/Catalyst/Helper.pm

diff --git a/Changes b/Changes
index cb1d690..4632cb3 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 This file documents the revision history for Perl extension Catalyst-Devel.
 
+        - Fix generated Makefile.PL to always contain unix style paths,
+          even on Win32. RT#65456
         - Fix tests generated for controllers generated with --mechanize
           to work with newer versions of Test::WWW::Mechanize::Catalyst
         - bump Module::Install dep to 1.02
index 976de96..f215564 100644 (file)
@@ -388,7 +388,7 @@ sub _mk_rootclass {
 
 sub _mk_makefile {
     my $self = shift;
-    $self->{path} = dir( 'lib', split( '::', $self->{name} ) );
+    $self->{path} = join('/', 'lib', split( '::', $self->{name} ) );
     $self->{path} .= '.pm';
     my $dir = $self->{dir};
     $self->render_sharedir_file( 'Makefile.PL.tt', file($dir, "Makefile.PL") );