diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/find_stray_empty_lines | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/find_stray_empty_lines b/scripts/find_stray_empty_lines new file mode 100755 index 000000000..58daf2f0c --- /dev/null +++ b/scripts/find_stray_empty_lines | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | grep -n -B1 -r $'^\t*}$' . | grep -A1 '.[ch]-[0-9]*-$' | ||
4 | grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$' | ||
5 | # or (less surefire ones): | ||
6 | grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$' | ||
7 | grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$' | ||