summaryrefslogtreecommitdiff
path: root/mk/help
diff options
context:
space:
mode:
authorrillig <rillig>2007-01-14 16:42:37 +0000
committerrillig <rillig>2007-01-14 16:42:37 +0000
commit3c6258fe14074480f95d15868886a513510fb0d8 (patch)
tree5cb4473a59ee87c2c2833a61d51788de66686bb4 /mk/help
parente33b369daa44cfb3b432e7d0a70e02d4e13c8bac (diff)
downloadpkgsrc-3c6258fe14074480f95d15868886a513510fb0d8.tar.gz
The default variable assignment is printed by "make help" again.
Completely empty lines are suppressed.
Diffstat (limited to 'mk/help')
-rw-r--r--mk/help/help.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/help/help.awk b/mk/help/help.awk
index cd705df1c13..4cb5f97b676 100644
--- a/mk/help/help.awk
+++ b/mk/help/help.awk
@@ -1,4 +1,4 @@
-# $NetBSD: help.awk,v 1.9 2007/01/11 00:36:12 rillig Exp $
+# $NetBSD: help.awk,v 1.10 2007/01/14 16:42:37 rillig Exp $
#
# This program extracts the inline documentation from *.mk files.
@@ -35,7 +35,7 @@ function end_of_topic() {
found_anything = yes;
print "===> "last_fname":";
for (i = 0; i < nlines; i++) {
- if (!print_noncomment_lines || (lines[i] ~ /^#/))
+ if (print_noncomment_lines || (lines[i] ~ /^#/))
print lines[i];
}
}
@@ -49,7 +49,7 @@ function end_of_topic() {
}
always {
- ignore_this_line = (ignore_next_empty_line && $0 == "#");
+ ignore_this_line = (ignore_next_empty_line && $0 == "#") || $0 == "";
ignore_next_empty_line = no;
}