Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: /
Date: Thu, 02 Jan 2020 13:38:51
Message-Id: 1577972135.832b6ab7ea3e5239ec1ad850ca08a85dc1cb3bb1.ulm@gentoo
1 commit: 832b6ab7ea3e5239ec1ad850ca08a85dc1cb3bb1
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 2 13:35:35 2020 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 2 13:35:35 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=832b6ab7
7
8 Makefile: Output a message if tidy succeeded.
9
10 Explicitly initialise status, in order to be independent of the
11 environment.
12
13 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
14
15 Makefile | 4 +++-
16 1 file changed, 3 insertions(+), 1 deletion(-)
17
18 diff --git a/Makefile b/Makefile
19 index 407decf..398d976 100644
20 --- a/Makefile
21 +++ b/Makefile
22 @@ -53,10 +53,12 @@ validate: prereq
23 # We have to loop through them because otherwise tidy won't
24 # tell you which file contains a mistake.
25 tidy: $(HTMLS)
26 - @for f in $(HTMLS); do \
27 + @status=0; \
28 + for f in $(HTMLS); do \
29 output=$$(tidy -q -errors --drop-empty-elements no $${f} 2>&1) \
30 || { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \
31 done; \
32 + test $${status} -eq 0 && echo "tidy validation successful"; \
33 exit $${status}
34
35 clean: