Return-Path: X-Original-To: apmail-yetus-commits-archive@minotaur.apache.org Delivered-To: apmail-yetus-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6595C19A8E for ; Fri, 22 Apr 2016 20:25:20 +0000 (UTC) Received: (qmail 9175 invoked by uid 500); 22 Apr 2016 20:25:20 -0000 Delivered-To: apmail-yetus-commits-archive@yetus.apache.org Received: (qmail 9093 invoked by uid 500); 22 Apr 2016 20:25:20 -0000 Mailing-List: contact commits-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list commits@yetus.apache.org Received: (qmail 8892 invoked by uid 99); 22 Apr 2016 20:25:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2016 20:25:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1AF3AE97B6; Fri, 22 Apr 2016 20:25:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aw@apache.org To: commits@yetus.apache.org Date: Fri, 22 Apr 2016 20:25:28 -0000 Message-Id: <9a7d2b7e6afa457388e283c3f55be89a@git.apache.org> In-Reply-To: <2b7d2ff32a1b4b5ab64ce496d5cc8a14@git.apache.org> References: <2b7d2ff32a1b4b5ab64ce496d5cc8a14@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/22] yetus git commit: YETUS-356. build driver: author plug-in still mentions patches YETUS-356. build driver: author plug-in still mentions patches Signed-off-by: Allen Wittenauer Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/31a6e3aa Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/31a6e3aa Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/31a6e3aa Branch: refs/heads/YETUS-156 Commit: 31a6e3aaf44549afae9d48a4d59c457b9fdc9106 Parents: 0c887e4 Author: Allen Wittenauer Authored: Tue Apr 12 13:55:17 2016 -0700 Committer: Allen Wittenauer Committed: Fri Apr 22 13:25:07 2016 -0700 ---------------------------------------------------------------------- precommit/test-patch.d/author.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/31a6e3aa/precommit/test-patch.d/author.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.d/author.sh b/precommit/test-patch.d/author.sh index 2e148d8..3d6e393 100755 --- a/precommit/test-patch.d/author.sh +++ b/precommit/test-patch.d/author.sh @@ -26,10 +26,17 @@ function author_generic { declare authortags declare i + declare msg + + if [[ "${BUILDMODE}" = full ]]; then + msg="patch" + else + msg="source tree" + fi # shellcheck disable=SC2016 authortags=$(wc -l "${PATCH_DIR}/author-tags.txt" | "${AWK}" '{print $1}') - echo "There appear to be ${authortags} @author tags in the patch." + echo "There appear to be ${authortags} @author tags in the ${msg}." if [[ ${authortags} != 0 ]] ; then add_vote_table -1 @author \ "${BUILDMODEMSG} appears to contain ${authortags} @author tags which the" \