From: David Marchand Date: Thu, 20 May 2021 10:39:38 +0000 (+0200) Subject: devtools: warn about old release notes updates X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=701f9f156b33d54b642cf80791e40d6ebbde082f;p=dpdk.git devtools: warn about old release notes updates Touching release notes should only be for the current version. Signed-off-by: David Marchand --- diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index db4c7d8301..ba43f84e64 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -198,6 +198,15 @@ check_internal_tags() { # return $res } +check_release_notes() { # + rel_notes_prefix=doc/guides/rel_notes/release_ + IFS=. read year month release < VERSION + current_rel_notes=${rel_notes_prefix}${year}_${month}.rst + + ! grep -e '^--- a/'$rel_notes_prefix -e '^+++ b/'$rel_notes_prefix "$1" | + grep -v $current_rel_notes +} + number=0 range='origin/main..' quiet=false @@ -289,6 +298,14 @@ check () { # ret=1 fi + ! $verbose || printf '\nChecking release notes updates:\n' + report=$(check_release_notes "$tmpinput") + if [ $? -ne 0 ] ; then + $headline_printed || print_headline "$3" + printf '%s\n' "$report" + ret=1 + fi + if [ "$tmpinput" != "$1" ]; then rm -f "$tmpinput" trap - INT