CC: | Jesse Vincent <jesse [...] bestpractical.com> |
Subject: | [PATCH] Switch to using MakeMaker's standard for prompting |
Date: | Tue, 17 Feb 2009 16:03:40 -0500 |
To: | bug-Net-Bonjour [...] rt.cpan.org |
From: | Jesse Vincent <jesse [...] bestpractical.com> |
---
Makefile.PL | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index 8852762..e4ba34a 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,8 +1,9 @@
use ExtUtils::MakeMaker;
-print "Enable enterprise tests? [y/N]";
-chomp(my $ans = <STDIN>);
+my $ans = prompt("Enable enterprise (remote) tests? [yN]");
+
my $tests = 't/*.t';
+
if ( $ans =~ /^y/i ) {
print "Enterprise tests enabled.\n";
print "Enterprise test will query HTTP service records from zeroconf.org\n";
--
1.6.1