summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2009-05-15 21:10:31 +0000
committerrillig <rillig>2009-05-15 21:10:31 +0000
commite1b57f31ccc6569287dc8f26d94ebb9a7682a0dc (patch)
treebea2d87a3d640de9f6a4c762982ee710f5cb582f /mk
parent04e41d98c200b737eec938d80f8480d03a1be6ac (diff)
downloadpkgsrc-e1b57f31ccc6569287dc8f26d94ebb9a7682a0dc.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.awk4
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);