YETUS-356. build driver: author plug-in still mentions patches Signed-off-by: Allen Wittenauer <[email protected]>
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 <[email protected]> Authored: Tue Apr 12 13:55:17 2016 -0700 Committer: Allen Wittenauer <[email protected]> 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" \
