aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-07-10 09:05:11 -0700
committerGravatar GitHub <noreply@github.com>2018-07-10 09:05:11 -0700
commitf23e21ce96c2f12efce9806d97e85bf457425ba5 (patch)
tree9e4f614d30e88bea9d6bacc367c46a4479c83fb0 /scripts
parent50cbfab391f50efd2f2270f24c3ca2e48e039510 (diff)
Check CMake files for copyrights (#1509)
* Check CMake files for copyrights * Add missing copyright
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_copyright.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/check_copyright.sh b/scripts/check_copyright.sh
index cc83e29..88d45ca 100755
--- a/scripts/check_copyright.sh
+++ b/scripts/check_copyright.sh
@@ -21,8 +21,9 @@ options=(
'Copyright [0-9]{4}.*Google'
)
-git grep "${options[@]}" \
- -- '*.'{c,cc,h,js,m,mm,py,rb,sh,swift} \
+git grep "${options[@]}" -- \
+ '*.'{c,cc,cmake,h,js,m,mm,py,rb,sh,swift} \
+ CMakeLists.txt '**/CMakeLists.txt' \
':(exclude)**/third_party/**'
if [[ $? == 0 ]]; then
echo "ERROR: Missing copyright notices in the files above. Please fix."