Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- scripts/check_maintainer.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/check_maintainer.sh
diff --git a/scripts/check_maintainer.sh b/scripts/check_maintainer.sh new file mode 100755 index 0000000000..074a6acf69 --- /dev/null +++ b/scripts/check_maintainer.sh @@ -0,0 +1,21 @@ +#! /bin/bash +# +# This script checks MAINTAINERS consistency +# +# Copyright (C) 2017 Philippe Mathieu-Daudé. GPLv2+. +# +# Usage: +# ./scripts/check_maintainer.sh | tee MAINTAINERS.missing + +echo "Incorrect MAINTAINERS paths:" 1>&2 +egrep ^F: MAINTAINERS | cut -d\ -f2 | while read p; do + ls -ld $p 1>/dev/null +done + +echo "No maintainers found for:" 1>&2 +git ls-files|while read f; do + OUT=$(./scripts/get_maintainer.pl -f $f 2>&1) + if [[ "$OUT" == *"No maintainers found"* ]]; then + echo $f + fi +done -- 2.13.3