From: Graham Knop Date: Wed, 5 Mar 2014 16:25:52 +0000 (-0500) Subject: simplify manicheck X-Git-Tag: v0.002000~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=792c9e914731a6672d6aa7c44fcf20bcd3f0f8d4;p=p5sagit%2FDistar.git simplify manicheck --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 106e3ff..42ae6fe 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -126,10 +126,7 @@ sub run_preflight { sub dist_test { my $self = shift; - my $manicheck = '$(PERLRUN) "-MExtUtils::Manifest=manicheck" -e "exit manicheck"'; - my $test = $self->can('cd') ? $self->cd('$(DISTVNAME)', $manicheck) - : 'cd $(DISTVNAME) && ' . $manicheck; - my $dist_test = $self->SUPER::dist_test(@_) . sprintf(<<'END', $test); + my $dist_test = $self->SUPER::dist_test(@_) . <<'END'; # --- Distar section: preflight: @@ -147,8 +144,8 @@ readmefile: create_distdir pod2text $(VERSION_FROM) >$(DISTVNAME)/README $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) ../Distar/helpers/add-readme-to-manifest disttest: distmanicheck -distmanicheck: distdir - %s +distmanicheck: create_distdir + cd $(DISTVNAME) && $(ABSPERLRUN) "-MExtUtils::Manifest=manicheck" -e "exit manicheck" END if (open my $fh, '<', 'maint/Makefile.include') {