Skip to content
Newer
Older
100644 87 lines (70 sloc) 1.8 KB
c1dab55 @rcaputo Added shebang and made executable.
authored
1 #!/usr/bin/perl
f022983 @rcaputo Initial revision
authored
2
ac1c8bd @rcaputo Added sungo's makefile magic.
authored
3 use strict;
f022983 @rcaputo Initial revision
authored
4 use ExtUtils::MakeMaker;
f664da1 add a warning about ithreads bug to Makefile.PL.
Matt Cashner authored
5 use Config;
e809155 @rcaputo dorked with indenting. whee!
authored
6
b449061 @rcaputo Remove ExtUtils::AutoInstall from the installer to support
authored
7 # Switch to default behavior if STDIN isn't a tty.
8
9 unless (-t STDIN) {
10 warn(
11 "\n",
12 "====================================================================\n",
13 "\n",
14 "Assuming --default because standard input is not a terminal.\n",
15 "\n",
16 "====================================================================\n",
17 "\n",
18 );
19 push @ARGV, "--default";
20 }
21
22 # Remind the user she can use --default.
23
24 unless (grep /^--default$/, @ARGV) {
25 warn(
26 "\n",
27 "====================================================================\n",
28 "\n",
29 "Prompts may be bypassed by running:\n",
30 " $^X $0 --default\n",
31 "\n",
32 "====================================================================\n",
33 "\n",
34 );
35 }
36
37 # Should we skip the network tests?
38
39 my $prompt = qq|
e29297b @rcaputo Improve the prompts for skipping network tests.
authored
40 Some of POE's tests require a functional network.
41 You can skip these tests if you'd like.
b4201e9 add ability to opt out of network tests
Matt Cashner authored
42
e29297b @rcaputo Improve the prompts for skipping network tests.
authored
43 Would you like to skip the network tests?|;
e88fe82 @rcaputo Part of ExtUtils::AutoInstall's automated install procedure involves
authored
44
b449061 @rcaputo Remove ExtUtils::AutoInstall from the installer to support
authored
45 my $ret = "n";
46 if (grep /^--default$/, @ARGV) {
47 print $prompt, " [n] n\n\n";
48 }
49 else {
50 $ret = prompt($prompt, "n");
51 }
b4201e9 add ability to opt out of network tests
Matt Cashner authored
52
b449061 @rcaputo Remove ExtUtils::AutoInstall from the installer to support
authored
53 my $marker = 'run_network_tests';
b4201e9 add ability to opt out of network tests
Matt Cashner authored
54
b449061 @rcaputo Remove ExtUtils::AutoInstall from the installer to support
authored
55 if($ret =~ /^Y$/i) {
56 unlink $marker if $marker;
57 } else {
58 open(TOUCH,"+>$marker") and close TOUCH;
b4201e9 add ability to opt out of network tests
Matt Cashner authored
59 }
60
b449061 @rcaputo Remove ExtUtils::AutoInstall from the installer to support
authored
61 print "\n";
62
f7967fc @rcaputo Add some comments.
authored
63 # Which kind of makefile should we build?
64
c9f1c19 @rcaputo Replace {% use_bytes %} with a Makefile.PL-time source filter, and
authored
65 if ($] < 5.005004) {
4e5a3b7 @rcaputo Commit the new tests, the new utilities to support them, and necessary
authored
66 warn(
67 "\n",
68 "===============================================================\n",
69 "\n",
c7ae3fa @rcaputo 5.005_04 exists, so the Makefile.PL deprecation warning has changed to
authored
70 "Please upgrade Perl to avoid lapses in support. Perl 5.005_04\n",
71 "or newer is preferred. Support for older versions will be\n",
72 "phased out in the future.\n",
73 "\n",
74 "Thank you.\n",
4e5a3b7 @rcaputo Commit the new tests, the new utilities to support them, and necessary
authored
75 "\n",
76 "===============================================================\n",
77 "\n",
78 );
ac1c8bd @rcaputo Added sungo's makefile magic.
authored
79
f2eda0e @rcaputo Hopefully this patch fixes all the paths to point to mylib instead of
authored
80 require "./mylib/Makefile-5004.pm";
ac1c8bd @rcaputo Added sungo's makefile magic.
authored
81 }
82 else {
f2eda0e @rcaputo Hopefully this patch fixes all the paths to point to mylib instead of
authored
83 require "./mylib/Makefile-5005.pm";
916c46a @rcaputo add dependency checking
authored
84 }
85
ab7773f @rcaputo Some package tools expect Makefile.PL to return 1. And since this is
authored
86 1;
Something went wrong with that request. Please try again.