summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxlint8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlint b/xlint
index 7317edb..194269e 100755
--- a/xlint
+++ b/xlint
@@ -36,6 +36,13 @@ exists_once() {
 	done
 }
 
+explain_make_check() {
+	awk "-vtemplate=$template" -vOFS=: '
+		/make_check=[^#]*$/ && !match(prev, /^[:blank:]*#/) {print(template, FNR, " explain why the tests fail")}
+		{prev=$0}
+	' $template
+}
+
 variables_order() {
 	local curr_index max_index max_index_line variables_end message line
 	max_index=0
@@ -462,6 +469,7 @@ for argument; do
 	variables_order
 	header
 	file_end
+	explain_make_check
 	else
 	echo no such template "$argument" 1>&2
 	fi | sort -t: -n -k2 -k3 | grep . && ret=1