devtools: check prefix for libraries patches
authorDavid Marchand <david.marchand@redhat.com>
Wed, 20 Oct 2021 09:14:15 +0000 (11:14 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 26 Nov 2021 10:11:42 +0000 (11:11 +0100)
The convention in DPDK is to directly use library names as prefix,
without a lib/.

Signed-off-by: David Marchand <david.marchand@redhat.com>
devtools/check-git-log.sh

index 885d444..23c6a7d 100755 (executable)
@@ -89,6 +89,12 @@ bad=$(for commit in $commits ; do
 done | sed 's,^,\t,')
 [ -z "$bad" ] || { printf "Wrong headline prefix:\n$bad\n" && failure=true;}
 
+# check headline prefix for libraries
+bad=$(echo "$headlines" | grep --color=always \
+       -e '^lib/' \
+       | sed 's,^,\t,')
+[ -z "$bad" ] || { printf "Wrong headline prefix:\n$bad\n" && failure=true;}
+
 # check headline label for common typos
 bad=$(echo "$headlines" | grep --color=always \
        -e '^example[:/]' \