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