Skip .pod files silently dolmen/skip-pod-files
Olivier Mengué [Thu, 12 Jun 2014 16:42:59 +0000 (18:42 +0200)]
Fatpacking POD files is useless, so skip them silently.

lib/App/FatPacker.pm

index c127ca7..ea9f2b9 100644 (file)
@@ -240,6 +240,7 @@ sub collect_files {
   my ($self, $dir, $files) = @_;
   find(sub {
     return unless -f $_;
+    return if /\.pod$/;
     !/\.pm$/ and warn "File ${File::Find::name} isn't a .pm file - can't pack this -- if you hoped we were going to, things may not be what you expected later\n" and return;
     $files->{File::Spec::Unix->abs2rel($File::Find::name,$dir)} =
       $self->load_file($File::Find::name);