diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-26 01:35:44 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-26 01:35:44 +0200 |
commit | 0f8960542f6f5ae258e72e56ba7296a01a9c10af (patch) | |
tree | 7a05c4aec785d2c445e6fdecad65d729e2bc5e16 /scripts/find_stray_empty_lines | |
parent | f3ea792badae9cd7c4205ac363301f1e94e57d4e (diff) | |
download | busybox-0f8960542f6f5ae258e72e56ba7296a01a9c10af.tar.gz |
*: more empty lines removed. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/find_stray_empty_lines')
-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 @@ +#!/bin/sh + +grep -n -B1 -r $'^\t*}$' . | grep -A1 '.[ch]-[0-9]*-$' +grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$' +# or (less surefire ones): +grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$' +grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$' |