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 | 26137a5d2099189d721a2249ad743f196aa86f5c (patch) | |
tree | bea2d87a3d640de9f6a4c762982ee710f5cb582f /mk | |
parent | 57db9f0322b2c5cac907fc4aeda3fad1e6aa6251 (diff) | |
download | pkgsrc-26137a5d2099189d721a2249ad743f196aa86f5c.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')
-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); |