Skip to content

Commit

Permalink
add $is_devel_host detection
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Sep 25, 2024
1 parent 058d7af commit 8789125
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use 5.005;
use ExtUtils::MakeMaker;

my $is_devel_host = defined $ENV{USER} && $ENV{USER} eq 'eserte' && ($^O =~ /bsd/i || $ENV{PERL_RELEASE_READY}) && -f "../../perl.release.mk";
my $eumm_recent_enough = $ExtUtils::MakeMaker::VERSION >= 6.54;

if (!$eumm_recent_enough) {
Expand Down Expand Up @@ -50,7 +51,7 @@ demo :: pure_all
';

if (defined $ENV{USER} && $ENV{USER} eq 'eserte' && $^O =~ /bsd/i && -f "../../perl.release.mk") {
if ($is_devel_host) {
$postamble .= <<'EOF';
.include "../../perl.release.mk"
Expand Down

0 comments on commit 8789125

Please sign in to comment.