X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fsplitpod;h=0e936337e3c6353f0433fa51f02452a232568b04;hb=593b9c1462e1fc8a2425e215f64b2197e1bfb796;hp=fd327d80da5f0371b9ae431c044d5ea6358413c5;hpb=c07a80fdfe3926b5eb0585b674aa5d1f57b32ade;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/splitpod b/pod/splitpod index fd327d8..0e93633 100755 --- a/pod/splitpod +++ b/pod/splitpod @@ -1,6 +1,7 @@ #!/usr/bin/perl -use PerlDoc::Functions; +use lib '../lib'; # If you haven't installed perl yet. +use Pod::Functions; local $/ = ''; @@ -9,23 +10,36 @@ while (<>) { next unless /^=(?!cut)/ .. /^=cut/; - if (s/=item (\S+)/$1/) { + if (/=item (\S+)/ and $1 ne '*') { + s/=item //; #$cur = "POSIX::" . $1; + $next{$cur} = $1; $cur = $1; $syn{$cur} .= $_; next; } else { #s,L $name.pod") || die "can't open $name.pod: $!"; print POD <