Last change
on this file since 3634 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
554 bytes
|
Rev | Line | |
---|
[3320] | 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]*-$'
|
---|
| 8 |
|
---|
| 9 | # find trailing empty lines
|
---|
| 10 | find -type f | while read file; do
|
---|
| 11 | test x"$file" = x"" && continue
|
---|
| 12 | tail -n1 $file | while read lastline
|
---|
| 13 | do
|
---|
| 14 | #echo "|$file|$lastline"
|
---|
| 15 | if test x"$lastline" = x""; then
|
---|
| 16 | echo "$file"
|
---|
| 17 | fi
|
---|
| 18 | done
|
---|
| 19 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.