Autogen README, add gitignore
[p5sagit/Class-C3-Componentised.git] / Makefile.PL
index 6c6119b..f01e2af 100644 (file)
@@ -24,4 +24,16 @@ requires  'Class::C3' => '0.20';
 
 resources repository => 'git://git.shadowcat.co.uk/p5sagit/Class-C3-Componentised.git';
 
+if ($Module::Install::AUTHOR) {
+
+  print "Regenerating README\n";
+  system('pod2text lib/Class/C3/Componentised.pm > README');
+
+  if (-f 'MANIFEST') {
+    print "Removing MANIFEST\n";
+    unlink 'MANIFEST';
+  }
+}
+
+
 WriteAll;