aboutsummaryrefslogtreecommitdiffstats
path: root/tools/check-copyright.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check-copyright.sh')
-rwxr-xr-xtools/check-copyright.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check-copyright.sh b/tools/check-copyright.sh
index c6dcb36ce..ba6423b9e 100755
--- a/tools/check-copyright.sh
+++ b/tools/check-copyright.sh
@@ -11,7 +11,7 @@ for F in $(find . -name "*.go" -o -name "*.sh" -o -name "*.cc" -o -name "*.h" \
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
# Ignore auto-generated files.
- egrep "(//|#) AUTOGENERATED FILE|(WARNING: This file is machine generated)" $F >/dev/null
+ egrep "^(//|#) Code generated .* DO NOT EDIT\\.|(WARNING: This file is machine generated)" $F >/dev/null
if [ $? -eq 0 ]; then continue; fi
# Ignore untracked files.
git ls-files --error-unmatch $F >/dev/null 2>&1