Files
mongo/dist/s_longlines
Keith Bostic 701e83d37a WT-2599: split out the checksum code from the support directory (#2707)
* WT-2599: split out the checksum code from the support directory

Also fix a lint complaint about missing enum options in a case statement and remove unnecessary WT_FILE_SYSTEM/WT_FILE_HANDLE method initialization.
2016-05-02 13:39:30 +10:00

20 lines
482 B
Bash
Executable File

#! /bin/sh
# Check for long lines
t=__wt.$$
trap 'rm -f $t; exit 0' 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 '/dist\/stat_data\.py/d' \
-e '/include\/extern\.h/d' \
-e '/support\/stat\.c/d'`
for f in $l ; do
expand -t8 < ../$f | awk -- \
"{if(length(\$0) > 80) printf(\"%s:%d\\n\", \"$f\", NR)}"
done