+++ /dev/null
-#!/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
--- /dev/null
+#!/usr/bin/env perl
+use strict;
+use warnings FATAL => 'all';
+
+use ExtUtils::Manifest 'maniadd';
+
+for my $file (@ARGV) {
+ eval { maniadd({ $file => "$file file (added by Distar)"}) }
+ or print "Could not add $file to MANIFEST: $@\n";
+}
my $readme_generator = <<'README';
pod2text $(VERSION_FROM) >$(DISTVNAME)/README
- $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) ../Distar/helpers/add-readme-to-manifest
+ $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) ../Distar/helpers/add-to-manifest README
README
sub readme_generator {
$readme_generator = shift;