From: Graham Knop Date: Tue, 24 Dec 2013 03:01:46 +0000 (-0500) Subject: validate manifest file when testing dist X-Git-Tag: v0.002000~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de048fa89a3c1e34bd319b0d85ba97f9d0df7234;p=p5sagit%2FDistar.git validate manifest file when testing dist --- diff --git a/lib/Distar.pm b/lib/Distar.pm index ee2b805..5a020d6 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -122,7 +122,10 @@ sub run_preflight { sub dist_test { my $self = shift; - my $dist_test = $self->SUPER::dist_test(@_) . <<'END'; + my $test = $self->cd('$(DISTVNAME)', + '$(PERLRUN) "-MExtUtils::Manifest=manicheck" -e "exit manicheck"' + ); + my $dist_test = $self->SUPER::dist_test(@_) . sprintf(<<'END', $test); # --- Distar section: preflight: @@ -139,6 +142,9 @@ distdir: readmefile readmefile: create_distdir pod2text $(VERSION_FROM) >$(DISTVNAME)/README $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) ../Distar/helpers/add-readme-to-manifest +disttest: distmanicheck +distmanicheck: distdir + %s END if (open my $fh, '<', 'maint/Makefile.include') {