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