From: Eric Wong Date: Wed, 16 Oct 2019 11:14:49 +0000 (+0000) Subject: doc: check-man: use COLUMNS env for width X-Git-Tag: v1.2.0~36 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=f8cc21f0064a34042d149f31097336919adf70d1 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. --- 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)