Skip to content

Commit f23e21c

Browse files
authored
Check CMake files for copyrights (#1509)
* Check CMake files for copyrights * Add missing copyright
1 parent 50cbfab commit f23e21c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

Firestore/Protos/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2018 Google
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
cc_library(
216
firebase_firestore_protos_nanopb
317
SOURCES

scripts/check_copyright.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ options=(
2121
'Copyright [0-9]{4}.*Google'
2222
)
2323

24-
git grep "${options[@]}" \
25-
-- '*.'{c,cc,h,js,m,mm,py,rb,sh,swift} \
24+
git grep "${options[@]}" -- \
25+
'*.'{c,cc,cmake,h,js,m,mm,py,rb,sh,swift} \
26+
CMakeLists.txt '**/CMakeLists.txt' \
2627
':(exclude)**/third_party/**'
2728
if [[ $? == 0 ]]; then
2829
echo "ERROR: Missing copyright notices in the files above. Please fix."

0 commit comments

Comments
 (0)