File: s_longlines

package info (click to toggle)
wiredtiger 3.2.1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 25,456 kB
  • sloc: ansic: 102,922; python: 52,573; sh: 6,915; java: 6,130; cpp: 2,311; makefile: 1,018; xml: 176
file content (26 lines) | stat: -rwxr-xr-x 678 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh

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

l=`(cd .. &&
    find bench/wtperf examples ext src test -name '*.[chisy]' &&
    find dist -name '*.py' &&
    find src -name '*.in') |
    sed -e '/checksum\/power8/d' \
        -e '/checksum\/zseries/d' \
        -e '/config\/config_def\.c/d' \
        -e '/dist\/stat_data\.py/d' \
        -e '/include\/extern\.h/d' \
        -e '/include\/extern_posix\.h/d' \
        -e '/include\/extern_win\.h/d' \
        -e '/log\/log_auto\.c/d' \
        -e '/support\/stat\.c/d'`

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

exit 0