blob: 35c43761628de88b30a27b74c52991d34c6d284a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/awk -f
#
# c2mdoc.awk -- Takes tabulated output from cproto(1) and turns it into
# mdoc(7) markup.
BEGIN { FS="\t" }
{
printf ".Ft %s\n", $1 ;
printf ".Fn %s", $2 ;
for (i = 4; i < NF; i++)
printf " \"%s\"", $i
printf "\n" ;
}
|