1 # A template for Makefile.PL.
2 # - Set the $PACKAGE variable to the name of your module.
3 # - Set $LAST_API_CHANGE to reflect the last version you changed the API
5 # - Fill in your dependencies in PREREQ_PM
6 # Alternatively, you can say the hell with this and use h2xs.
10 use ExtUtils::MakeMaker;
12 $PACKAGE = 'File::chdir';
13 ($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g;
14 $LAST_API_CHANGE = 0.04;
16 eval "require $PACKAGE";
18 if(!$@ && ${$PACKAGE.'::VERSION'} < $LAST_API_CHANGE) {
19 print <<"CHANGE_WARN";
21 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
23 -----*****>>>>> THE INTERFACE HAS CHANGED <<<<<*****----------
25 The chdir() override has been ELIMINATED. It's too complicated and
26 not worth the trouble.
28 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
30 We'll pause for 20 seconds...
39 VERSION_FROM => "lib/$PACKAGE_FILE.pm", # finds $VERSION
40 PREREQ_PM => { Cwd => 0,
43 'dist' => { COMPRESS => 'gzip -9',
45 DIST_DEFAULT => 'all tardist',
53 sub test_via_harness {
54 my($self, $orig_perl, $tests) = @_;
56 my @perls = ($orig_perl);
57 push @perls, qw(bleadperl
64 if $ENV{PERL_TEST_ALL};
67 foreach my $perl (@perls) {
68 $out .= $self->SUPER::test_via_harness($perl, $tests);