Fix two bugs related to pod files outside of pod/
authorNicholas Clark <nick@ccl4.org>
Sun, 27 Nov 2011 20:26:46 +0000 (21:26 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 27 Nov 2011 20:34:27 +0000 (21:34 +0100)
commitb0f2e9edf966bfc1d2c74c5c60829849f5a6832e
tree764395eab89d119880a93e1f43add547de67ed81
parent1d59c038541d06bcc3c0126ba2a62aefd47228a2
Fix two bugs related to pod files outside of pod/

Commit 1721346e4e420217, which allowed buildtoc to handle files outside of
pod/, had two bugs when processing files from outside of pod/

Firstly, the call to podset() for the core pods needs to pass in the short
name of the pod, not the name with the path in it (ie $_->[4], not $_->[1]),
else the =head2 entry for that pod will have the pathname in it.

Secondly, buildtoc must take care to avoid outputting the contents for these
pods twice - once when read from cpan/ or dist/ using the path in pod.lst,
and once from the file as found in lib/
pod/buildtoc