tools/check-copyright.sh: also check cc/h/S files

This commit is contained in:
Dmitry Vyukov 2020-02-21 17:56:49 +01:00
parent 4428511d10
commit a35df73a56

View File

@ -4,7 +4,8 @@
FILES=0
FAILED=""
for F in $(find -name "*.go" -o -name "*.sh" -o \( -path "./sys/*/*.txt" \) | egrep -v "/vendor/|/gen/"); do
for F in $(find -name "*.go" -o -name "*.sh" -o -name "*.cc" -o -name "*.h" \
-o -name "*.S" -o \( -path "./sys/*/*.txt" \) | egrep -v "/vendor/|/gen/"); do
((FILES+=1))
cat $F | tr '\n' '_' | egrep "(//|#) Copyright 20[0-9]{2}(/20[0-9]{2})? syzkaller project authors\. All rights reserved\._(//|#) Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file\." >/dev/null
if [ $? -eq 0 ]; then continue; fi