From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 695151F5A6 for ; Thu, 14 Nov 2019 06:41:15 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/4] doc: check-man: save the result of successful runs Date: Thu, 14 Nov 2019 06:41:14 +0000 Message-Id: <20191114064114.9763-5-e@80x24.org> In-Reply-To: <20191114064114.9763-1-e@80x24.org> References: <20191114064114.9763-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We can keep a stamp around if the corresponding manpage hasn't changed to avoid re-running man(1) and awk(1). --- .gitignore | 1 + Documentation/include.mk | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 66f165e2..167d08bf 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ *.8 *.html *.gz +.*.cols /NEWS.html /NEWS.atom /NEWS diff --git a/Documentation/include.mk b/Documentation/include.mk index ea0498c1..651fdf30 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -93,14 +93,15 @@ doc_install :: install-man check :: check-man check_man = @echo CHECK80 $<;COLUMNS=80 $(MAN) ./$^ | \ - $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2 + $(AWK) '{gsub(/\b./,"")}length>80{print;err=1}END{exit(err)}' >&2 \ + && >$@ -%.1.cols : %.1; $(check_man) -%.5.cols : %.5; $(check_man) -%.7.cols : %.7; $(check_man) -%.8.cols : %.8; $(check_man) +.%.1.cols : %.1; $(check_man) +.%.5.cols : %.5; $(check_man) +.%.7.cols : %.7; $(check_man) +.%.8.cols : %.8; $(check_man) -check-man :: $(addsuffix .cols, $(manpages)) +check-man :: $(addprefix .,$(addsuffix .cols, $(manpages))) manuals := manuals += $(m1)