2 # This file is part of the coreboot project.
4 # SPDX-License-Identifier: GPL-2.0-only
6 # DESCR: verify that files don't have the old style header
8 # regex list of files and directories to exclude from the search
21 ^util/scripts/no-fsf-addresses.sh|\
22 ^util/lint/lint-000-license-headers|\
23 ^util/lint/lint-stable-009-old-licenses\
26 if [ -z "$HEADER_DIRS" ]; then
27 HEADER_DIRS
="src util"
30 LC_ALL
=C
export LC_ALL
32 headerlist
=$
(git ls-files
$HEADER_DIRS |
egrep -v "($HEADER_EXCLUDED)")
34 #check for the old style header
35 headerlist
=$
(grep -il "You should have received a copy of the GNU" \
36 $headerlist 2>/dev
/null
)
38 for file in $headerlist; do
39 echo "$file has the old GPL header."