summaryrefslogtreecommitdiff
path: root/dist/s_longlines
blob: ffe6b741bef7f0fa9e27e77135b2014775b84cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

# Check for long lines
t=__wt.$$
trap 'rm -f $t; exit 0' 0 1 2 3 13 15

l=`(cd .. &&
    find examples ext src test -name '*.[chisy]' &&
    find src -name '*.in') |
    grep -v 'support/stat\.c'`

for f in $l ; do
	expand -t8 < ../$f | awk -- \
		"{if(length(\$0) > 80) printf(\"%s:%d\\n\", \"$f\", NR)}"
done