X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Froffitall;h=cbd19af4fed43efe0b9396e20b050d40867b7f3b;hb=b74bceb9cc5d8f31510279b2c34ea465fe21fd8f;hp=d69054f41b88f85ff6099aaeb44c13181a77fe66;hpb=ec4e49dc1523dcdb6bec56a66be410eab95cfa61;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/roffitall b/pod/roffitall index d69054f..cbd19af 100644 --- a/pod/roffitall +++ b/pod/roffitall @@ -180,14 +180,22 @@ fi #psroff -t -man -rC1 -rD1 -rF1 > $tmp/PerlDoc.ps 2>$tmp/PerlTOC.raw #nroff -man -rC1 -rD1 -rF1 > $tmp/PerlDoc.txt 2>$tmp/PerlTOC.nr.raw +# First, create the raw data run="$cmd -rC1 -rD1 -rF1 >$tmp/PerlDoc.$ext 2>$tmp/PerlTOC.$ext.raw" echo "$me: running $run" eval $run $toroff + +#Now create the TOC echo "$me: parsing TOC" ./rofftoc $tmp/PerlTOC.$ext.raw > $tmp/PerlTOC.tmp.man run="$cmd $tmp/PerlTOC.tmp.man >$tmp/PerlTOC.$ext" echo "$me: running $run" eval $run + +# Finally, recreate the Doc, without the blank page 0 +run="$cmd -rC1 -rD1 >$tmp/PerlDoc.$ext 2>$tmp/PerlTOC.$ext.raw" +echo "$me: running $run" +eval $run $toroff rm -f $tmp/PerlTOC.tmp.man $tmp/PerlTOC.$ext.raw echo "$me: leaving you with $tmp/PerlDoc.$ext and $tmp/PerlTOC.$ext"