From c1b0209e72423c375501f6faeea9e2e16536bfae Mon Sep 17 00:00:00 2001 From: Chris Maloney Date: Sat, 19 May 2012 08:37:39 -0400 Subject: [PATCH] #26 Also changed names of pod-generating scripts; bump version to 0.52 --- .gitignore | 6 ------ Build.PL | 11 +++++++---- lib/Physics/Unit.pm | 2 +- .../{UnitsByName.pod.PL => GenUnitsByName.pod.PL} | 0 .../{UnitsByType.pod.PL => GenUnitsByType.pod.PL} | 0 lib/Physics/Unit/Scalar.pm | 2 +- lib/Physics/Unit/Script.pm | 2 +- lib/Physics/Unit/Script/GenPages.pm | 2 +- 8 files changed, 11 insertions(+), 14 deletions(-) rename lib/Physics/Unit/{UnitsByName.pod.PL => GenUnitsByName.pod.PL} (100%) rename lib/Physics/Unit/{UnitsByType.pod.PL => GenUnitsByType.pod.PL} (100%) diff --git a/.gitignore b/.gitignore index e61cc05..f9d5088 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,4 @@ Build Build.bat _build -blib -*.tmp -lib/Physics/Unit/UnitsByName.pod -lib/Physics/Unit/UnitsByName.html -lib/Physics/Unit/UnitsByType.pod -lib/Physics/Unit/UnitsByType.html diff --git a/Build.PL b/Build.PL index 2986e3e..d1f2a22 100644 --- a/Build.PL +++ b/Build.PL @@ -11,8 +11,11 @@ sub ACTION_manifest { $self->SUPER::ACTION_manifest; my $manifest = maniread; - my @podpl = grep { /\.pod\.PL$/ } keys %$manifest; - my %pod = map { my $file = $_; $file =~ s/\.PL$//; ($file, "Generated Pod") } @podpl; + my @podpl = grep { /^Gen(.*)\.pod\.PL$/ } keys %$manifest; + my %pod = map { + my $file = $_; + $file =~ s/^Gen(.*)\.PL$/$1/; + ($file, "Generated Pod") } @podpl; maniadd \%pod; } END_CODE @@ -34,8 +37,8 @@ my $build = $class->new( "warnings" => 0, }, PL_files => { - 'lib/Physics/Unit/UnitsByName.pod.PL' => 'lib/Physics/Unit/UnitsByName.pod', - 'lib/Physics/Unit/UnitsByType.pod.PL' => 'lib/Physics/Unit/UnitsByType.pod', + 'lib/Physics/Unit/GenUnitsByName.pod.PL' => 'lib/Physics/Unit/UnitsByName.pod', + 'lib/Physics/Unit/GenUnitsByType.pod.PL' => 'lib/Physics/Unit/UnitsByType.pod', }, meta_merge => { resources => { diff --git a/lib/Physics/Unit.pm b/lib/Physics/Unit.pm index 9387888..5ba0657 100755 --- a/lib/Physics/Unit.pm +++ b/lib/Physics/Unit.pm @@ -11,7 +11,7 @@ use vars qw( $number_re ); -$VERSION = '0.51_1'; +$VERSION = '0.52'; $VERSION = eval $VERSION; @EXPORT_OK = qw( diff --git a/lib/Physics/Unit/UnitsByName.pod.PL b/lib/Physics/Unit/GenUnitsByName.pod.PL similarity index 100% rename from lib/Physics/Unit/UnitsByName.pod.PL rename to lib/Physics/Unit/GenUnitsByName.pod.PL diff --git a/lib/Physics/Unit/UnitsByType.pod.PL b/lib/Physics/Unit/GenUnitsByType.pod.PL similarity index 100% rename from lib/Physics/Unit/UnitsByType.pod.PL rename to lib/Physics/Unit/GenUnitsByType.pod.PL diff --git a/lib/Physics/Unit/Scalar.pm b/lib/Physics/Unit/Scalar.pm index 0e660a7..f547475 100755 --- a/lib/Physics/Unit/Scalar.pm +++ b/lib/Physics/Unit/Scalar.pm @@ -5,7 +5,7 @@ use Carp; use base qw(Exporter); use vars qw( $VERSION @EXPORT_OK %EXPORT_TAGS $debug); -$VERSION = '0.51_1'; +$VERSION = '0.52'; $VERSION = eval $VERSION; @EXPORT_OK = qw( ScalarFactory GetScalar ); diff --git a/lib/Physics/Unit/Script.pm b/lib/Physics/Unit/Script.pm index 34c58ab..7cc78b7 100755 --- a/lib/Physics/Unit/Script.pm +++ b/lib/Physics/Unit/Script.pm @@ -6,7 +6,7 @@ use warnings; use Physics::Unit ':ALL'; use Physics::Unit::Script::GenPages; -our $VERSION = '0.51_1'; +our $VERSION = '0.52'; $VERSION = eval $VERSION; use base 'Exporter'; diff --git a/lib/Physics/Unit/Script/GenPages.pm b/lib/Physics/Unit/Script/GenPages.pm index 7f8f877..4e4beaa 100755 --- a/lib/Physics/Unit/Script/GenPages.pm +++ b/lib/Physics/Unit/Script/GenPages.pm @@ -6,7 +6,7 @@ package Physics::Unit::Script::GenPages; use strict; use warnings; -our $VERSION = '0.51_1'; +our $VERSION = '0.52'; $VERSION = eval $VERSION; use Physics::Unit ':ALL';