Patrick Georgi | 533ec00 | 2012-03-07 15:49:07 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2012 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 | 533ec00 | 2012-03-07 15:49:07 +0100 | [diff] [blame] | 15 | # DESCR: Check that C labels begin at start-of-line |
| 16 | |
| 17 | LC_ALL=C export LC_ALL |
Patrick Georgi | 08fec46 | 2014-01-10 19:41:54 +0100 | [diff] [blame] | 18 | git diff --name-status |grep -v "^D" |cut -c3- |grep "^src/.*\.[csS]" | xargs grep -Hn '^[[:space:]][[:space:]]*[a-z][a-z]*:[[:space:]]*$' |grep -v "[^a-z_]default:" |