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 BAC47138334 for ; Thu, 2 Jan 2020 13:38:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8723E0AD1; Thu, 2 Jan 2020 13:38:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 BB9D7E0AD1 for ; Thu, 2 Jan 2020 13:38:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 8A1FD34DE41 for ; Thu, 2 Jan 2020 13:38:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29CF637 for ; Thu, 2 Jan 2020 13:38:47 +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: <1577972135.832b6ab7ea3e5239ec1ad850ca08a85dc1cb3bb1.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: 832b6ab7ea3e5239ec1ad850ca08a85dc1cb3bb1 X-VCS-Branch: master Date: Thu, 2 Jan 2020 13:38:47 +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: 43a5c68d-4f38-4135-90be-a453eede509b X-Archives-Hash: decb433340f6c0f4db6cfef1b85d75f8 commit: 832b6ab7ea3e5239ec1ad850ca08a85dc1cb3bb1 Author: Ulrich Müller gentoo org> AuthorDate: Thu Jan 2 13:35:35 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu Jan 2 13:35:35 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=832b6ab7 Makefile: Output a message if tidy succeeded. Explicitly initialise status, in order to be independent of the environment. Signed-off-by: Ulrich Müller gentoo.org> Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 407decf..398d976 100644 --- a/Makefile +++ b/Makefile @@ -53,10 +53,12 @@ validate: prereq # We have to loop through them because otherwise tidy won't # tell you which file contains a mistake. tidy: $(HTMLS) - @for f in $(HTMLS); do \ + @status=0; \ + for f in $(HTMLS); do \ output=$$(tidy -q -errors --drop-empty-elements no $${f} 2>&1) \ || { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \ done; \ + test $${status} -eq 0 && echo "tidy validation successful"; \ exit $${status} clean: