Re-enabled the detection of variables as they appear in

mk/defaults/mk.conf. I don't know when I removed it accidentally.
This commit is contained in:
rillig 2009-05-15 21:10:31 +00:00
parent 29602c9ff9
commit 87255936f0

View file

@ -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);