On Thu, Feb 26, 2004 at 07:30:02PM +0000, Ed Avis wrote:
> On Thu, 26 Feb 2004, Ed Avis wrote:
>
> >If VERSION_FROM is a listref, MakeMaker could parse each file in turn
> >and check that the version numbers are the same.
>
> On second thoughts such a Makefile.PL would be incompatible with all
> existing MakeMaker installations, so it's not such a great idea. I
> still think the feature would be nice to have but it would need a
> name other than VERSION_FROM.
A feature request! Module::Build is in the building across the street.
Anyhow, even with a new name you'd still be required to set VERSION_FROM,
in addition to the new parameter, else older versions of MM wouldn't know
what version your distribution is.
If all you want is to make sure that all your version numbers match up,
you don't need special features to do this.
$Version = undef;
foreach my $file (qw(lib/Foo.pm lib/Bar.pm)) {
my $version = MM->parse_version($file);
$Version = $version unless defined $Version;
warn "Version of $file ($version) does not match $Version\n"
if $Version != $version;
}
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/