From f8cc21f0064a34042d149f31097336919adf70d1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 16 Oct 2019 11:14:49 +0000 Subject: [PATCH] doc: check-man: use COLUMNS env for width That's the environment documented in ncurses(3) and man(1) from the man-db.nongnu.org distribution of man. --- Documentation/include.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/include.mk b/Documentation/include.mk index 2878422c..07b9f2a3 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -92,7 +92,7 @@ doc_install :: install-man # n.b. not sure if our usage of man(1) is portable or not, so not # enabled by default "check" target: # check :: check-man -check_man = @echo CHECK80 $<;COLS=80 $(MAN) ./$^ | \ +check_man = @echo CHECK80 $<;COLUMNS=80 $(MAN) ./$^ | \ $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2 %.1.cols : %.1; $(check_man) -- 2.44.0