#!/bin/bash

# Check for long lines
. `dirname -- ${BASH_SOURCE[0]}`/common_functions.sh
setup_trap
cd_top
check_fast_mode_flag

l=`(find bench/wtperf examples ext src test tools/checksum_bitflip -name '*.[chsy]' &&
    find dist -name '*.py' &&
    find src -name '*.in') |
    filter_if_fast |
    sed -e '/checksum\/power8/d' \
        -e '/checksum\/zseries/d' \
        -e '/config\/config_def\.c/d' \
        -e '/dist\/stat_data\.py/d' \
        -e '/format\/config_def\.c/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
