summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-01-14 16:42:37 +0000
committerrillig <rillig@pkgsrc.org>2007-01-14 16:42:37 +0000
commit82ff4507d8c3a3c8351cd3c93954bb335dd7618b (patch)
tree5cb4473a59ee87c2c2833a61d51788de66686bb4 /mk
parentba4c16614861f44284a469eab609ca3b70aa6153 (diff)
downloadpkgsrc-82ff4507d8c3a3c8351cd3c93954bb335dd7618b.tar.gz
The default variable assignment is printed by "make help" again.
Completely empty lines are suppressed.
Diffstat (limited to 'mk')
-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;
}