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 E2D251F47A for ; Fri, 29 Nov 2019 10:14:14 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 5/7] tests: don't repeatly validate NEWS.atom Date: Fri, 29 Nov 2019 10:14:12 +0000 Message-Id: <20191129101414.343-6-e@80x24.org> In-Reply-To: <20191129101414.343-1-e@80x24.org> References: <20191129101414.343-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We can create a stamp to avoid rerunning the check unless NEWS.atom changes (and it will, soon, I hope :>). --- .gitignore | 1 + Documentation/include.mk | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9eb97751..bdb8cf15 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ *.html *.gz .*.cols +.*.check /NEWS.html /NEWS.atom /NEWS diff --git a/Documentation/include.mk b/Documentation/include.mk index 651fdf30..624f07f4 100644 --- a/Documentation/include.mk +++ b/Documentation/include.mk @@ -134,11 +134,12 @@ NEWS NEWS.atom NEWS.html : Documentation/include.mk $(PERL) -I lib -w Documentation/mknews.perl $@ $(RELEASES) # check for internal API changes: -check :: NEWS check-NEWS.atom NEWS.html +check :: NEWS .NEWS.atom.check NEWS.html -check-NEWS.atom: NEWS.atom +.NEWS.atom.check: NEWS.atom $(XMLSTARLET) val NEWS.atom || \ { e=$$?; test $$e -eq 0 || test $$e -eq 127; } + >$@ Documentation/%.html: Documentation/%.txt $(txt2pre)