From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5800B138350 for ; Sun, 12 Jan 2020 09:23:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7DA57E084E; Sun, 12 Jan 2020 09:23:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5515DE084E for ; Sun, 12 Jan 2020 09:23:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 25D3634DF9D for ; Sun, 12 Jan 2020 09:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 166838E for ; Sun, 12 Jan 2020 09:23:14 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1578820885.5a59efa3a33383bf41466296c765d6ba096ebc25.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 5a59efa3a33383bf41466296c765d6ba096ebc25 X-VCS-Branch: master Date: Sun, 12 Jan 2020 09:23:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f43d0fcc-7a25-4477-9c90-8a690b0c4125 X-Archives-Hash: d3bf5b51932c451aadc35eccc16a4fbc commit: 5a59efa3a33383bf41466296c765d6ba096ebc25 Author: Ulrich Müller gentoo org> AuthorDate: Fri Jan 10 00:32:39 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Jan 12 09:21:25 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=5a59efa3 Makefile: Run tidy also on html files generated from eclass manpages. Signed-off-by: Ulrich Müller gentoo.org> Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 398d976..a6df3be 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ XMLS := $(shell find . -name .git -prune -o -type f -name 'text.xml' -print) SVGS := $(shell find . -name .git -prune -o -type f -name '*.svg' -print) HTMLS := $(subst text.xml,index.html,$(XMLS)) +ECLASS_HTMLS := $(wildcard eclass-reference/*/index.html) IMAGES := $(patsubst %.svg,%.png,$(SVGS)) all: prereq validate $(HTMLS) $(IMAGES) documents.js @@ -52,9 +53,9 @@ validate: prereq # Run app-text/tidy-html5 on the output to detect mistakes. # We have to loop through them because otherwise tidy won't # tell you which file contains a mistake. -tidy: $(HTMLS) +tidy: $(HTMLS) $(ECLASS_HTMLS) @status=0; \ - for f in $(HTMLS); do \ + for f in $^; do \ output=$$(tidy -q -errors --drop-empty-elements no $${f} 2>&1) \ || { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \ done; \