16 lines
418 B
Bash
16 lines
418 B
Bash
#! /bin/sh
|
|
|
|
# Check for long lines
|
|
t=__wt.$$
|
|
trap 'rm -f $t; exit 0' 0 1 2 3 13 15
|
|
|
|
l=`(sed -e '/^[a-z]/! d' -e 's,^,../,' filelist ;
|
|
ls ../src/include/*.[hi] ../src/include/*.in ../test/bt/*.[ch]) |
|
|
egrep -v 'src/api/(api|pack)\.c$' |
|
|
egrep -v 'include/api\.h|.*/api_int\.c$|support/stat\.c$'`
|
|
|
|
for f in $l ; do
|
|
expand -t8 < $f | awk -- \
|
|
"{if(length(\$0) > 80) printf(\"%s:%d\\n\", \"$f\", NR)}"
|
|
done
|