aboutsummaryrefslogtreecommitdiff
path: root/devel/c2mdoc
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-03-02 12:02:15 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-03-02 12:02:15 +0000
commitbf0ea5c93db03333cb86d4a53a274705548acb9b (patch)
tree67e4735a78b97fa79d6dd9b39877eac159fde35a /devel/c2mdoc
parent1251b7cb0a938c28c912fc01eb1e380103562902 (diff)
downloadports-bf0ea5c93db03333cb86d4a53a274705548acb9b.tar.gz
ports-bf0ea5c93db03333cb86d4a53a274705548acb9b.zip
Notes
Diffstat (limited to 'devel/c2mdoc')
-rw-r--r--devel/c2mdoc/files/c2mdoc2
-rw-r--r--devel/c2mdoc/files/c2mdoc.awk4
2 files changed, 5 insertions, 1 deletions
diff --git a/devel/c2mdoc/files/c2mdoc b/devel/c2mdoc/files/c2mdoc
index 245e8687b054..e1b789998d04 100644
--- a/devel/c2mdoc/files/c2mdoc
+++ b/devel/c2mdoc/files/c2mdoc
@@ -3,6 +3,8 @@
# c2mdoc -- Front-end which abuses the cproto parser to spit out
# mdoc(7) format prototypes for use in FreeBSD documentation.
#
+# $FreeBSD$
+#
AWKSCRIPT="%%LIBEXECDIR%%/c2mdoc.awk"
CPROTO='-P"int\tf\t(\ta\t,\tb\t)" -pq -f3'
diff --git a/devel/c2mdoc/files/c2mdoc.awk b/devel/c2mdoc/files/c2mdoc.awk
index 5bf92fecbc11..ec7dfb9ab84a 100644
--- a/devel/c2mdoc/files/c2mdoc.awk
+++ b/devel/c2mdoc/files/c2mdoc.awk
@@ -3,9 +3,11 @@
# c2mdoc.awk -- Takes tabulated output from cproto(1) and turns it into
# mdoc(7) markup.
#
+# $FreeBSD$
+#
BEGIN { FS="\t" }
{
- printf ".Fa %s\n", $1 ;
+ printf ".Ft %s\n", $1 ;
printf ".Fn %s", $2 ;
for (i = 4; i < NF; i++)
printf " \"%s\"", $i