pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/help If more than one location for a topic is found...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1147656b61f7
branches:  trunk
changeset: 529094:1147656b61f7
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu May 24 05:29:06 2007 +0000

description:
If more than one location for a topic is found, print an empty line
between them. Up to now, "bmake help topic=configure" looked rather
compressed.

diffstat:

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

diffs (18 lines):

diff -r 1b25342bde0d -r 1147656b61f7 mk/help/help.awk
--- a/mk/help/help.awk  Thu May 24 04:46:52 2007 +0000
+++ b/mk/help/help.awk  Thu May 24 05:29:06 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.13 2007/03/09 01:34:50 rillig Exp $
+# $NetBSD: help.awk,v 1.14 2007/05/24 05:29:06 rillig Exp $
 #
 
 # This program extracts the inline documentation from *.mk files.
@@ -32,6 +32,8 @@
 #
 function end_of_topic() {
        if (relevant && comment_lines > 2) {
+               if (found_anything)
+                       print "";
                found_anything = yes;
                print "===> "last_fname":";
                for (i = 0; i < nlines; i++) {



Home | Main Index | Thread Index | Old Index