From 8789125a285d160c67b9d81535b773fb2b257ec8 Mon Sep 17 00:00:00 2001 From: Slaven Rezic Date: Wed, 25 Sep 2024 10:22:55 +0200 Subject: [PATCH] add $is_devel_host detection --- Makefile.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index af79de3..e2112d6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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) { @@ -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"