tree: drop last paragraph of GPL copyright header
[coreboot.git] / util / lint / lint-stable-003-whitespace
blob3dbd4730f542955585bfcd72c8e268346ee0ced6
1 #!/bin/sh
2 # This file is part of the coreboot project.
4 # Copyright (C) 2011 Patrick Georgi <patrick@georgi-clan.de>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # DESCR: Check for superfluous whitespace in the tree
17 LC_ALL=C export LC_ALL
18 grep -l "[[:space:]][[:space:]]*$" `git ls-files src util |egrep -v "(^3rdparty|^src/vendorcode/|^util/kconfig/|^util/nvidia/cbootimage$|\<COPYING\>|\<LICENSE\>|\<README\>|_shipped$|\.patch$|\.bin$|\.hex$|\.jpg$)"` | \
19 sed -e "s,^.*$,File & has lines ending with whitespace.,"