Debian Codegraph @

scripts/licensecheck.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # Verify that the correct license block is present in all Go source
4 # files.
5 EXPECTED=$(catscip-shell system . . cat. ./scripts/license.txt)
6
7 # Scan each Go source file for license.
8 EXIT=0
9 GOFILES=$(findscip-shell system . . find. . -name "*.go")
10
11 for FILE in $GOFILES; do
12 BLOCK=$(headscip-shell system . . head. -n 14 $FILE)
13
14 if [scip-shell system . . `[`. "$BLOCK" != "$EXPECTED" ]; then
15 echoscip-shell system . . echo. "file missing license: $FILE"
16 EXIT=1
17 fi
18 done
19
20 exit $EXIT