soc/amd/common/blocks/include: rename gpio_banks.h to gpio.h
[coreboot.git] / util / lint / lint-stable-021-coreboot-lowercase
blobb13cb4487ed4e2bb28f1125cd3251ecf79feb4b1
1 #!/usr/bin/env sh
3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Verify that the word 'coreboot' is lowercase
7 LC_ALL=C export LC_ALL
9 EXCLUDE='^3rdparty/\|util/crossgcc/xgcc\|Binary file\|coreboot\|COREBOOT\|CorebootPayload\|CorebootModule\|minnowboard.org/Coreboot\|.*\.patch$\|CorebootBdsLib\|^payloads/external'
11 # Use git grep if the code is in a git repo, otherwise use grep.
12 if [ -n "$(command -v git)" ] && \
13 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
14 then
15 GREP_FILES="git grep -in"
17 # Check last commit message
18 if [ -n "$(git log -n 1 | grep -i 'coreboot' | grep -v "$EXCLUDE" )" ]; then
19 echo "'coreboot' should be lowercase in commit message"
21 else
22 GREP_FILES="grep -rin"
25 ${GREP_FILES} "coreboot" | grep -v "$EXCLUDE";