diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-10-15 00:10:59 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2016-10-15 00:10:59 +0200 |
commit | d1e7da3b24637d6bb70f24fd16ada00104a24123 (patch) | |
tree | 1ddb16f1ab24e08108cd402a88bb4580e665305a /Makefile.PL | |
parent | d943c46455a0ec8d3a3f3dacd05debc8d9c9d5f1 (diff) | |
download | bugzilla-d1e7da3b24637d6bb70f24fd16ada00104a24123.tar.gz bugzilla-d1e7da3b24637d6bb70f24fd16ada00104a24123.tar.xz |
Bug 1308949 - Keep MYMETA.json up-to-date when checksetup is run
r=dkl
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 11 |
1 files changed, 10 insertions, 1 deletions
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 |