summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2018-05-14 12:59:56 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-05-14 23:32:23 +0200
commit5831a2198ade05242535822e480e83692652e02d (patch)
treeb68b1f5e42da553c33fb9ccc9a82c71a8407cd65 /devtools
parentf2790f9cf8486b01576c6ddfd60d2ce434a2b3e4 (diff)
downloaddpdk-5831a2198ade05242535822e480e83692652e02d.zip
dpdk-5831a2198ade05242535822e480e83692652e02d.tar.gz
dpdk-5831a2198ade05242535822e480e83692652e02d.tar.xz
devtools: provide more generic grep in git check
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>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/check-git-log.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh
index c601f6a..2542d9e 100755
--- a/devtools/check-git-log.sh
+++ b/devtools/check-git-log.sh
@@ -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"