summaryrefslogtreecommitdiff
path: root/util/lint
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-08-10 19:32:34 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-08-11 19:13:25 +0200
commit40c845d3529cfd1a58c63f2cf356388b5d76e955 (patch)
tree1663c6f4a14db08baf3b5bf57b7144e17409af86 /util/lint
parent4b65c2ad3300990ea6b471559c5d10b5c6111430 (diff)
downloadcoreboot-40c845d3529cfd1a58c63f2cf356388b5d76e955.tar.xz
lint: provide better GPL license text test
Still not lint-stable due to too many open issues, but at least it doesn't try to touch files that aren't part of the repository anymore. Change-Id: I654b15480094c7731a7d0d17fa1622a0b41ac34a Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/6584 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'util/lint')
-rwxr-xr-xutil/lint/lint-000-license-headers13
1 files changed, 1 insertions, 12 deletions
diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers
index 07dde9487a..7074430b36 100755
--- a/util/lint/lint-000-license-headers
+++ b/util/lint/lint-000-license-headers
@@ -20,16 +20,5 @@
# DESCR: Check that all files in src/ and util/ have valid license headers
LC_ALL=C export LC_ALL
-find src util -name .svn -type d -prune -o \
- -name README -prune -o \
- -name LICENSE -prune -o \
- -name TODO -prune -o \
- -name COPYING -prune -o \
- -name microcode-\*.h -prune -o \
- -name \*.[18] -prune -o \
- -name romcc -type d -prune -o \
- -name crossgcc -type d -prune -o \
- -name vendorcode -type d -prune -o \
- -type f -exec \
- grep -L "51 Franklin St, Fifth Floor, Boston" {} + | \
+grep -L "51 Franklin St, Fifth Floor, Boston" `git ls-files src util |egrep -v "(^3rdparty|^src/vendorcode/|^util/kconfig/|^util/romcc/tests|\<COPYING\>|\<LICENSE\>|\<README\>|_shipped$|\.patch$|/microcode-[^/]*.h$)"` | \
sed -e "s,^.*$,File & has no valid GPL header.,"