pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/help Re-enabled the detection of variables as they ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93ab71782e93
branches:  trunk
changeset: 558862:93ab71782e93
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri May 15 21:10:31 2009 +0000

description:
Re-enabled the detection of variables as they appear in
mk/defaults/mk.conf. I don't know when I removed it accidentally.

diffstat:

 mk/help/help.awk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b6459ef9809e -r 93ab71782e93 mk/help/help.awk
--- a/mk/help/help.awk  Fri May 15 18:24:29 2009 +0000
+++ b/mk/help/help.awk  Fri May 15 21:10:31 2009 +0000
@@ -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 @@
 # 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);



Home | Main Index | Thread Index | Old Index