add-readme-to-manifest is now a script to reduce makefile complexity
Christian Walde [Sun, 15 Jul 2012 13:39:25 +0000 (15:39 +0200)]
helpers/add-readme-to-manifest [new file with mode: 0644]
lib/Distar.pm

diff --git a/helpers/add-readme-to-manifest b/helpers/add-readme-to-manifest
new file mode 100644 (file)
index 0000000..88a30b0
--- /dev/null
@@ -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
index 70128c4..26a41c8 100644 (file)
@@ -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
 
 {