devtools: provide more generic grep in git check
authorAndy Green <andy@warmcat.com>
Mon, 14 May 2018 04:59:56 +0000 (12:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:32:23 +0000 (23:32 +0200)
On Fedora 28, every patch is faulted for
"Wrong headline uppercase", because [A-Z] is not
always case sensitive.

Change to use [[:upper:]]

Signed-off-by: Andy Green <andy@warmcat.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
devtools/check-git-log.sh

index c601f6a..2542d9e 100755 (executable)
@@ -106,8 +106,8 @@ bad=$(echo "$headlines" | grep --color=always \
 
 # check headline lowercase for first words
 bad=$(echo "$headlines" | grep --color=always \
-       -e '^.*[A-Z].*:' \
-       -e ': *[A-Z]' \
+       -e '^.*[[:upper:]].*:' \
+       -e ': *[[:upper:]]' \
        | sed 's,^,\t,')
 [ -z "$bad" ] || printf "Wrong headline uppercase:\n$bad\n"