diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-02-21 17:56:49 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-21 17:56:49 +0100 |
| commit | a35df73a561c7c7f2af33482ece6cf87ce090bda (patch) | |
| tree | 8b5382b08152d49c6de3db2f151bcb54f3623da6 /tools/check-copyright.sh | |
| parent | 4428511d10687cb446ad705148333478437d3f23 (diff) | |
tools/check-copyright.sh: also check cc/h/S files
Diffstat (limited to 'tools/check-copyright.sh')
| -rwxr-xr-x | tools/check-copyright.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/check-copyright.sh b/tools/check-copyright.sh index 86067564c..776577b7d 100755 --- a/tools/check-copyright.sh +++ b/tools/check-copyright.sh @@ -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 |
