diff options
author | rillig <rillig@pkgsrc.org> | 2009-05-15 21:10:31 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2009-05-15 21:10:31 +0000 |
commit | 2be08f65e76952044a2a2a6de65be7a8c24f1274 (patch) | |
tree | bea2d87a3d640de9f6a4c762982ee710f5cb582f /mk/help/help.awk | |
parent | a27e9a6aeb6a4458a9f439a3456712d52028cd14 (diff) | |
download | pkgsrc-2be08f65e76952044a2a2a6de65be7a8c24f1274.tar.gz |
Re-enabled the detection of variables as they appear in
mk/defaults/mk.conf. I don't know when I removed it accidentally.
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); |