From: Christian Walde Date: Sun, 15 Jul 2012 13:39:25 +0000 (+0200) Subject: add-readme-to-manifest is now a script to reduce makefile complexity X-Git-Tag: v0.001000~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=046ee5541b65ea51fd01e4796275664b5593e65c;p=p5sagit%2FDistar.git add-readme-to-manifest is now a script to reduce makefile complexity --- diff --git a/helpers/add-readme-to-manifest b/helpers/add-readme-to-manifest new file mode 100644 index 0000000..88a30b0 --- /dev/null +++ b/helpers/add-readme-to-manifest @@ -0,0 +1,9 @@ +#!/usr/bin/env perl + +use strict; +use warnings FATAL => 'all'; + +use ExtUtils::Manifest 'maniadd'; + +eval { maniadd({ README => "README file (added by Distar)"}) } + or print "Could not add README to MANIFEST: $@\n"; \ No newline at end of file diff --git a/lib/Distar.pm b/lib/Distar.pm index 70128c4..26a41c8 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -98,8 +98,7 @@ release: preflight distdir: readmefile readmefile: create_distdir pod2text $(VERSION_FROM) >$(DISTVNAME)/README - $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{README} => q{README file (added by Distar)}}) } ' \ - -e ' or print "Could not add README to MANIFEST: $${'\''@'\''}\n"' -- + $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) ../Distar/helpers/add-readme-to-manifest END {