This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/main by this push:
new 529f4ec YETUS-1130. cc_fitler should strip BASEDIR and sort (#229)
529f4ec is described below
commit 529f4eca9ae48ee265b3a889ddc0e56d7666eaf9
Author: Allen Wittenauer <[email protected]>
AuthorDate: Wed Oct 27 22:57:05 2021 -0700
YETUS-1130. cc_fitler should strip BASEDIR and sort (#229)
---
precommit/src/main/shell/plugins.d/cc.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/precommit/src/main/shell/plugins.d/cc.sh
b/precommit/src/main/shell/plugins.d/cc.sh
index 4b31065..ba0280c 100755
--- a/precommit/src/main/shell/plugins.d/cc.sh
+++ b/precommit/src/main/shell/plugins.d/cc.sh
@@ -68,5 +68,8 @@ function cc_logfilter
declare output=$2
#shellcheck disable=SC1117
- "${GREP}" -i -E "^.*\.${CC_EXT_RE}\:[[:digit:]]*\:" "${input}" > "${output}"
+ "${GREP}" -i -E "^.*\.${CC_EXT_RE}\:[[:digit:]]*\:" "${input}" \
+ | "${SED}" -e "s,^${BASEDIR}/,," \
+ | sort \
+ > "${output}"
}