X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=inc%2FModule%2FInstall%2FMakefile%2FVersion.pm;fp=inc%2FModule%2FInstall%2FMakefile%2FVersion.pm;h=0000000000000000000000000000000000000000;hb=5da29bf099eb7bfbc1afcba037356cf196e72a72;hp=349afc01639495ce51d1d350419cfec9f97a31cd;hpb=933728271dfc39e78c1c91913753ad49655f32b2;p=perl%2Fmodules%2Fre-engine-Plugin.git diff --git a/inc/Module/Install/Makefile/Version.pm b/inc/Module/Install/Makefile/Version.pm deleted file mode 100644 index 349afc0..0000000 --- a/inc/Module/Install/Makefile/Version.pm +++ /dev/null @@ -1,42 +0,0 @@ -#line 1 -package Module::Install::Makefile::Version; - -use Module::Install::Base; -@ISA = qw(Module::Install::Base); - -$VERSION = '0.65'; - -use strict; - -sub determine_VERSION { - my $self = shift; - my @modules = glob('*.pm'); - - require File::Find; - File::Find::find( sub { - push @modules, $File::Find::name =~ /\.pm\z/i; - }, 'lib' ); - - if (@modules == 1) { - eval { - $self->version( - ExtUtils::MM_Unix->parse_version($modules[0]) - ); - }; - print STDERR $@ if $@; - - } elsif ( my $file = "lib/" . $self->name . ".pm" ) { - $file =~ s!-!/!g; - $self->version( - ExtUtils::MM_Unix->parse_version($file) - ) if -f $file; - - } - - $self->version or die << "END_MESSAGE"; -Can't determine a VERSION for this distribution. -Please call the 'version' or 'version_from' function in Makefile.PL. -END_MESSAGE -} - -1;