From: Vincent Pit Date: Sun, 4 Oct 2009 08:46:42 +0000 (+0200) Subject: Build the $name from $dist X-Git-Tag: v0.07~31 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=cd8f7b1728e37a4bebbe7a5e293d3706b32a0eb7;p=perl%2Fmodules%2Frgit.git Build the $name from $dist --- diff --git a/Makefile.PL b/Makefile.PL index 1ba7a61..54b937d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,8 @@ use ExtUtils::MakeMaker; my $dist = 'rgit'; +(my $name = $dist) =~ s{-}{::}g; + my %PREREQ_PM = ( 'Carp' => 0, 'Cwd' => 0, @@ -42,7 +44,7 @@ my %META = ( ); WriteMakefile( - NAME => 'rgit', + NAME => $name, AUTHOR => 'Vincent Pit ', LICENSE => 'perl', VERSION_FROM => 'lib/App/Rgit.pm',