From f23e21ce96c2f12efce9806d97e85bf457425ba5 Mon Sep 17 00:00:00 2001 From: Gil Date: Tue, 10 Jul 2018 09:05:11 -0700 Subject: Check CMake files for copyrights (#1509) * Check CMake files for copyrights * Add missing copyright --- Firestore/Protos/CMakeLists.txt | 14 ++++++++++++++ scripts/check_copyright.sh | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Firestore/Protos/CMakeLists.txt b/Firestore/Protos/CMakeLists.txt index 831b53d..b347a61 100644 --- a/Firestore/Protos/CMakeLists.txt +++ b/Firestore/Protos/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2018 Google +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cc_library( firebase_firestore_protos_nanopb SOURCES 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." -- cgit v1.2.3