From d1e7da3b24637d6bb70f24fd16ada00104a24123 Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Fri, 14 Oct 2016 18:10:59 -0400 Subject: Bug 1308949 - Keep MYMETA.json up-to-date when checksetup is run r=dkl --- Makefile.PL | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 325fed4d1..500c48466 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -23,6 +23,13 @@ use Bugzilla::Constants qw(BUGZILLA_VERSION); use File::Basename; use File::Spec; +BEGIN { + if ($ENV{BZ_SILENT_MAKEFILE}) { + open STDOUT, '>>', File::Spec->devnull; + open STDERR, '>>', File::Spec->devnull; + } +} + # META.json and META.yml exist only for the benefit of older # installs where cpanm can't get the optional features out of Makefile.PL # Unfortunately having META.json and META.yml commited to the repo is weird @@ -369,7 +376,9 @@ cpanfile: MYMETA.json \t\$(PERLRUN) gen-cpanfile.pl \$(GEN_CPANFILE_ARGS) checksetup_lib: Makefile.PL -\tcpanm -l .checksetup_lib CPAN::Meta Module::Metadata\@$all_features{'Module::Metadata'} +\tcpanm -L .checksetup_lib --notest \\ + CPAN::Meta JSON::PP CPAN::Meta::Requirements \\ + Module::Metadata\@$all_features{'Module::Metadata'} \t-rm -fr .checksetup_lib/man \t-rm -fr .checksetup_lib/lib/perl5/*/.meta \t-rm -fr .checksetup_lib/lib/perl5/Test -- cgit v1.2.3-24-g4f1b