$doxywork = $currentdir+"doxywork/"
$srcman3 = $currentdir+usr_or_ja+"/man/man3/"
if usr_or_ja == "usr"
- $dstman3m = $currentdir+"/man/man3m/"
+ $dstman3m = $currentdir+"/usr/man3m/"
else
- $dstman3m = $currentdir+"/man/ja/man3m/"
+ $dstman3m = $currentdir+"/ja/man3m/"
end
$sampledir="sample/man3/"
+$headfile = $currentdir+"manhead"
+headbuf = open($headfile, "r").readlines
+
#
# Extra information about header strings Doxygen generates in a man file.
#
### TEST 6/24
line.gsub!(".RS 4","")
+### letting verbatim end in place
+ line.gsub!(/^.nf/,".NF")
+
#removing "More..." hyperlink
line.gsub!(/More.../,"")
# ? ad hoc
if line =~ /Return\svalue:/
returndescribed = true
end
- line.gsub!(/^\\fBReturn value:\\fP/,"\n.SH RETURNS\n.PP")
+ line.gsub!(/^\\fBReturn value:\\fP/,"\n.SH RETURN VALUE\n.PP")
if line =~ /Errors:/
errordescribed = true
end
line.gsub!(/^\\fBErrors:\\fP/,"\n.SH ERRORS\n.PP")
line.gsub!(/^\\fBSee Also:\\fP/,"\n.SH \"SEE ALSO\"\n.PP")
- line.gsub!(/^\\fB(.+)\\fP/){"\n.SS " << $1}
+ line.gsub!(/^\\fB(.+)[^\)]\\fP/){"\n.SS " << $1}
+ # [^\)] in the pattern is added to avoid the first function in see also section.
#removing indentation
if text[i - 1] =~ /^.PP/
text.each_with_index{|line,i|
line.gsub!(/More.../,"")
+
+ ### let verbatim end in place
+ line.gsub!(/^.nf/,".NF")
# let the library name appear in the header
if line =~ /^.TH/
end
filetowrite = open($dstman3m+filename,"w")
+ filetowrite.puts(headbuf)
filetowrite.puts(buf)
filetowrite.flush
end