lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From the...@apache.org
Subject [lucy-commits] svn commit: r1296756 - /incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm
Date Sun, 04 Mar 2012 06:32:15 GMT
Author: theory
Date: Sun Mar  4 06:32:15 2012
New Revision: 1296756

URL: http://svn.apache.org/viewvc?rev=1296756&view=rev
Log:
Require Module::Build v0.38 for creating a distribution.

Modified:
    incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm

Modified: incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm?rev=1296756&r1=1296755&r2=1296756&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm (original)
+++ incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm Sun Mar  4 06:32:15 2012
@@ -670,8 +670,20 @@ sub autogen_header {
 END_AUTOGEN
 }
 
+sub _check_module_build_for_dist {
+    eval "use Module::Build 0.38;";
+    die "./Build dist reqiures Module::Build 0.38 or higher--this is only "
+        . Module::Build->VERSION . $/ if $@;
+}
+
+sub ACTION_distdir {
+    _check_module_build_for_dist;
+    shift->SUPER::ACTION_distdir(@_);
+}
+
 sub ACTION_dist {
     my $self = shift;
+    _check_module_build_for_dist;
 
     # Create POD but make sure not to include build artifacts.
     $self->dispatch('pod');



Mime
View raw message