]> git.vpit.fr Git - perl/modules/rgit.git/commitdiff
Build the $name from $dist
authorVincent Pit <vince@profvince.com>
Sun, 4 Oct 2009 08:46:42 +0000 (10:46 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 4 Oct 2009 08:47:03 +0000 (10:47 +0200)
Makefile.PL

index 1ba7a612c4902e6fe3504c302ef0f640791e0177..54b937d024153a9869967fcd851e6ddaec8435cc 100644 (file)
@@ -6,6 +6,8 @@ use ExtUtils::MakeMaker;
 
 my $dist = 'rgit';
 
 
 my $dist = 'rgit';
 
+(my $name = $dist) =~ s{-}{::}g;
+
 my %PREREQ_PM = (
  'Carp'                  => 0,
  'Cwd'                   => 0,
 my %PREREQ_PM = (
  'Carp'                  => 0,
  'Cwd'                   => 0,
@@ -42,7 +44,7 @@ my %META = (
 );
 
 WriteMakefile(
 );
 
 WriteMakefile(
-    NAME             => 'rgit',
+    NAME             => $name,
     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
     LICENSE          => 'perl',
     VERSION_FROM     => 'lib/App/Rgit.pm',
     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
     LICENSE          => 'perl',
     VERSION_FROM     => 'lib/App/Rgit.pm',