File tree Expand file tree Collapse file tree 3 files changed +15
-30
lines changed Expand file tree Collapse file tree 3 files changed +15
-30
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2016 The go-qemu Authors.
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.
Original file line number Diff line number Diff line change 2
2
3
3
# Verify that the correct license block is present in all Go source
4
4
# files.
5
- read -r -d ' ' EXPECTED << EndOfLicense
6
- // Copyright 2016 The go-qemu Authors.
7
- //
8
- // Licensed under the Apache License, Version 2.0 (the "License");
9
- // you may not use this file except in compliance with the License.
10
- // You may obtain a copy of the License at
11
- //
12
- // http://www.apache.org/licenses/LICENSE-2.0
13
- //
14
- // Unless required by applicable law or agreed to in writing, software
15
- // distributed under the License is distributed on an "AS IS" BASIS,
16
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- // See the License for the specific language governing permissions and
18
- // limitations under the License.
19
- EndOfLicense
5
+ EXPECTED=$( cat ./scripts/license.txt)
20
6
21
7
# Scan each Go source file for license.
22
8
EXIT=0
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# License block to be prepended to file
4
- read -r -d ' ' LICENSE << EndOfLicense
5
- // Copyright 2016 The go-qemu Authors.
6
- //
7
- // Licensed under the Apache License, Version 2.0 (the "License");
8
- // you may not use this file except in compliance with the License.
9
- // You may obtain a copy of the License at
10
- //
11
- // http://www.apache.org/licenses/LICENSE-2.0
12
- //
13
- // Unless required by applicable law or agreed to in writing, software
14
- // distributed under the License is distributed on an "AS IS" BASIS,
15
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- // See the License for the specific language governing permissions and
17
- // limitations under the License.
18
- EndOfLicense
4
+ LICENSE=$( cat ./scripts/license.txt)
19
5
20
6
if [ -z " $1 " ]; then
21
7
echo " missing filename argument"
You can’t perform that action at this time.
0 commit comments