File: check-license.sh

package info (click to toggle)
python-jaeger-client 4.8.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 920 kB
  • sloc: python: 5,656; makefile: 93; sh: 26; awk: 16
file content (10 lines) | stat: -rwxr-xr-x 303 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

licRes=$(
for file in $(find jaeger_client tests crossdock -type f -iname '*.py' ! -path '*/thrift_gen/*'); do
	head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo "  ${file}"
done;)
if [ -n "${licRes}" ]; then
	echo "license header check failed:\n${licRes}"
	exit 255
fi