Return-Path: X-Original-To: apmail-incubator-lucy-commits-archive@www.apache.org Delivered-To: apmail-incubator-lucy-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 233F0961F for ; Sun, 4 Mar 2012 06:32:37 +0000 (UTC) Received: (qmail 96125 invoked by uid 500); 4 Mar 2012 06:32:37 -0000 Delivered-To: apmail-incubator-lucy-commits-archive@incubator.apache.org Received: (qmail 96098 invoked by uid 500); 4 Mar 2012 06:32:37 -0000 Mailing-List: contact lucy-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@incubator.apache.org Delivered-To: mailing list lucy-commits@incubator.apache.org Received: (qmail 96084 invoked by uid 99); 4 Mar 2012 06:32:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 06:32:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 06:32:35 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8704E23889B8; Sun, 4 Mar 2012 06:32:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Date: Sun, 04 Mar 2012 06:32:15 -0000 To: lucy-commits@incubator.apache.org From: theory@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120304063215.8704E23889B8@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Subject: [lucy-commits] svn commit: r1296756 - /incubator/lucy/trunk/perl/buildlib/Lucy/Build.pm 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');