generalize manifest adding script
[p5sagit/Distar.git] / helpers / add-to-manifest
diff --git a/helpers/add-to-manifest b/helpers/add-to-manifest
new file mode 100755 (executable)
index 0000000..93608aa
--- /dev/null
@@ -0,0 +1,10 @@
+#!/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";
+}