File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
2
1
# Copyright 2020 Google LLC
3
2
#
4
3
# Licensed under the Apache License, Version 2.0 (the "License");
13
12
# See the License for the specific language governing permissions and
14
13
# limitations under the License.
15
14
15
+ #! /bin/bash
16
16
17
17
# Script to configure GCE instance to run LLVM ml-driven optimization build bots.
18
18
Original file line number Diff line number Diff line change
1
+ # Copyright 2020 Google LLC
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
+
1
15
#! /bin/bash
2
16
3
17
exitcode=0
10
24
exitcode=1
11
25
fi
12
26
done
27
+
28
+ for fname in ` find . -name " *.sh" ` ;
29
+ do
30
+ diff -q <( head -13 $fname ) <( tail -13 license-header.txt) > /dev/null
31
+ if [ $? -ne 0 ]
32
+ then
33
+ echo " $fname does not have license header. Please copy and paste ./license-header.txt"
34
+ exitcode=1
35
+ fi
36
+ done
37
+
13
38
exit ${exitcode}
You can’t perform that action at this time.
0 commit comments