Author: joes
Date: Fri Apr 15 20:11:39 2005
New Revision: 161540

URL: http://svn.apache.org/viewcvs?view=rev&rev=161540
Log:
Add version check for Test::Inline at 0.16.
Test::Inline installs pod2test.

joes removed the ugly tabs.

Submitted by: Philip Gollucci
Reviewed by: joes

Modified:
    httpd/apreq/branches/multi-env-unstable/build/version_check.pl
    httpd/apreq/branches/multi-env-unstable/buildconf

Modified: httpd/apreq/branches/multi-env-unstable/build/version_check.pl
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/build/version_check.pl?view=diff&r1=161539&r2=161540
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/build/version_check.pl (original)
+++ httpd/apreq/branches/multi-env-unstable/build/version_check.pl Fri Apr 15 
20:11:39 2005
@@ -16,6 +16,13 @@
     $@ ? return '' : return $ExtUtils::XSBuilder::VERSION;
 }
 
+sub ti_version {
+    eval {
+        require Test::Inline;
+    };
+    @$ ? return '' : return $Test::Inline::VERSION;
+}
+
 sub a_t_version {
     require Apache::Test;
     $Apache::Test::VERSION;
@@ -67,6 +74,10 @@
            "Test::More" => { version => "0.47",    test => \&tm_version },
                 );
 
+my %test = (
+            "Test::Inline" => { version => "0.16", test => \&ti_version },
+           );
+
 sub print_prereqs ($$) {
     my ($preamble, $prereq) = @_;
     print $preamble, "\n";
@@ -128,7 +139,7 @@
 
 # test prerequisites from the command-line arguments
 
-my %prereq = (%svn, %build, %perl_glue);
+my %prereq = (%svn, %build, %perl_glue, %test);
 die "$0 failed: unknown tool '$tool'.\n" unless $prereq{$tool};
 my $version = $prereq{$tool}->{version};
 my @version = split /\./, $version;

Modified: httpd/apreq/branches/multi-env-unstable/buildconf
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/buildconf?view=diff&r1=161539&r2=161540
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/buildconf (original)
+++ httpd/apreq/branches/multi-env-unstable/buildconf Fri Apr 15 20:11:39 2005
@@ -71,6 +71,7 @@
 $perl build/version_check.pl autoconf $autoconf  || exit 1
 $perl build/version_check.pl automake $automake  || exit 1
 $perl build/version_check.pl ExtUtils::XSBuilder || exit 1
+$perl build/version_check.pl Test::Inline || exit 1
 
 echo "running $libtoolize" && $libtoolize && \
 echo "running $aclocal"  && $aclocal && \


Reply via email to