You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2016/04/17 19:15:09 UTC

[21/23] 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 <aw...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/8ddaa2a2
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/8ddaa2a2
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/8ddaa2a2

Branch: refs/heads/YETUS-156
Commit: 8ddaa2a2241b218b7b515526ee0857ee0cc4b0ff
Parents: bcbeae5
Author: Allen Wittenauer <aw...@apache.org>
Authored: Tue Apr 12 13:55:17 2016 -0700
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Sun Apr 17 10:14:34 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/8ddaa2a2/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" \