Hey,

Suppose I want to auto-generate the README from the main .pm 
file documentation.  I've been using the following to do it:

my $module = 'AI::Categorizer';
(my $dir  = $module) =~ s/::/-/g;
....

    'dist' => { COMPRESS=>"gzip",
                SUFFIX=>"gz",
                PREOP=>('rm -f README; '.
                        "pod2text -80 < $file > README; ".
                        "cp -f README $dir-\$(VERSION); "
                       ),
              },

However, that doesn't work so well.  In particular, if a README 
file doesn't already exist, manicopy() will die because the 
README is in the MANIFEST, and it can't find it when it's 
building the $dir-$VERSION directory.

Is there some other way to achieve this?  I haven't found it yet.

Also, am I wrong, or did manicopy() just warn on this error 
(instead of dying) in previous versions?  I'm running the EU::MM 
5.45 version that comes with perl 5.6.0 on this particular 
machine.

  -Ken

Reply via email to