Patrick Georgi | d13e416 | 2012-02-16 20:28:42 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2011 Patrick Georgi <patrick@georgi-clan.de> |
| 5 | # |
| 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. |
| 9 | # |
| 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. |
| 14 | # |
Patrick Georgi | d13e416 | 2012-02-16 20:28:42 +0100 | [diff] [blame] | 15 | # DESCR: Check for superfluous whitespace in the tree |
| 16 | |
| 17 | LC_ALL=C export LC_ALL |
Patrick Georgi | 64d0480 | 2015-08-09 18:30:21 +0200 | [diff] [blame] | 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$)"` | \ |
Patrick Georgi | d13e416 | 2012-02-16 20:28:42 +0100 | [diff] [blame] | 19 | sed -e "s,^.*$,File & has lines ending with whitespace.," |