David K. Bainbridge | 528b318 | 2017-01-23 08:51:59 -0800 | [diff] [blame] | 1 | PROJECT := github.com/juju/utils |
2 | |||||
3 | check-licence: | ||||
4 | @(fgrep -rl "Licensed under the LGPLv3" .;\ | ||||
5 | fgrep -rl "MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT" .;\ | ||||
6 | find . -name "*.go") | sed -e 's,\./,,' | sort | uniq -u | \ | ||||
7 | xargs -I {} echo FAIL: licence missed: {} | ||||
8 | |||||
9 | check: check-licence | ||||
10 | go test $(PROJECT)/... |