installman only needs match =head1 to identify files with Pod.
authorNicholas Clark <nick@ccl4.org>
Tue, 13 Dec 2011 15:16:37 +0000 (15:16 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 19 Dec 2011 12:55:18 +0000 (13:55 +0100)
commit5a6ebf5f1bade18766ab23840c650c33987032be
treeb0c395e944c36ed23330aac0ddc8da3efe06e495
parente974216454f8721c048be4f1c4a1100ad8193791
installman only needs match =head1 to identify files with Pod.

Commit 63fae90782a9851d made installman skip files which contained no Pod.
However, the regex used, /^=(?:head\d+|item|pod)\b/ is overly permissive.
All files with Pod actually match /^=head1\b/. Moreover, a Pod file which
does not start with a =head1 is not going to generate a well formed man
page. Hence restrict the files processed to those which are well formed.
installman