>>>>> On Tue, 30 Apr 2002 15:53:24 +1000, Ken Williams <[EMAIL PROTECTED]> said:
> 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.
I take the README out of the MANIFEST and use this:
'dist' => {
PREOP => 'pod2text lib/CPAN.pm > $(DISTVNAME)/README',
DIST_DEFAULT => 'all tardist',
COMPRESS => 'gzip -9f'
},
I forgot why I did this but I also could not find a real good way.
--
andreas