X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f90d648b31d6695e25cc134c1b28dde63fa72b35;hb=c81fbf98951298e690910a8014c986d62226b2d8;hp=5ae5a2115a7c238403ed92c65e470f4f31a8b64a;hpb=f74c6517c765a3e6ac204b84ffe9d825dacee9e5;p=dbsrgits%2FSQL-Translator.git diff --git a/Makefile.PL b/Makefile.PL index 5ae5a21..f90d648 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -23,12 +23,14 @@ check_version('IO::Scalar' => 0 => 0); check_version('Parse::RecDescent' => 1.94 => 0); check_version('Pod::Usage' => 0 => 0); check_version('Spreadsheet::ParseExcel' => 0 => 1); +check_version('Template' => 2.10 => 1); check_version('Test::More' => 0 => 0); check_version('Test::Exception' => 0 => 0); +check_version('Test::Differences' => 0 => 0); check_version('Text::ParseWords' => 0 => 0); check_version('Text::RecordParser' => 0.02 => 0); check_version('XML::Writer' => 0 => 1); -check_version('XML::XPath' => 0 => 1); +check_version('XML::XPath' => 1.13 => 1); print "\n"; @@ -79,6 +81,7 @@ sub check_version { my ($dots, $load); if ($version) { + $version = sprintf "%.02f", $version; $load = "$module $version"; } else { @@ -105,10 +108,11 @@ sub check_version { } else { no strict qw(refs); - my $version = ${"$module\::VERSION"}; - print "$load $dots $version"; - print $optional ? optional($version) : required($version); + my $ver = sprintf "%.02f" => ${"$module\::VERSION"}; + print "$load $dots $ver"; + print $optional ? optional($ver) : required($ver); print "\n"; + $version = $ver; } $PREREQ_PM{$module} = $version;