]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blobdiff - inc/Module/Install/Makefile/Version.pm
Now using ExtUtils::MakeMaker instead of Module::Install
[perl/modules/re-engine-Plugin.git] / inc / Module / Install / Makefile / Version.pm
diff --git a/inc/Module/Install/Makefile/Version.pm b/inc/Module/Install/Makefile/Version.pm
deleted file mode 100644 (file)
index 349afc0..0000000
+++ /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;