diff options
Diffstat (limited to 'mk/help/help.awk')
-rw-r--r-- | mk/help/help.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/help/help.awk b/mk/help/help.awk index efb29454db7..453c74d220e 100644 --- a/mk/help/help.awk +++ b/mk/help/help.awk @@ -1,4 +1,4 @@ -# $NetBSD: help.awk,v 1.25 2008/02/20 10:42:21 rillig Exp $ +# $NetBSD: help.awk,v 1.26 2009/05/15 21:10:31 rillig Exp $ # # This program extracts the inline documentation from *.mk files. @@ -124,7 +124,7 @@ $1 ~ /:$/ && $2 == ".PHONY" { # Everything else is assumed to belong to the explaining text. # NF >= 1 && !/^[\t.]/ && !/^#*$/ { - w = $1 == "#" ? $2 : $1; + w = ($1 ~ /^\#[A-Z]/) ? substr($1, 2) : ($1 == "#") ? $2 : $1; # Reduce FOO.<param> and FOO.${param} to FOO. sub(/\.[<$].*[>}]$/, "", w); |