| 12345678910111213141516171819202122 | #!/bin/sh
echo -n "testing files for executable bits that shouldn't be executable ... "
find * -executable -type f | \
	grep -vE "compile|config\.(guess|status|sub)|configure|depcomp|install-sh|libtool|missing" | 
	grep -vE "*\.test|tests/common|src(/\.libs)?/(e?speak-ng|.*\.so\..*)|src/\.libs/lt-espeak-ng|android" | 
	grep -vE "*.\.sh|tools/emoji" | 
	grep -vE "src/ucd-tools/tools/(.*\.py|mkencodingtable)" | 
	grep -vE "tests/.libs|src/ucd-tools/tests/print(ucd|c)data(_cpp)?" | 
	tee tests/non-executable-files-with-executable-bit.check > /dev/null
if [ -s tests/non-executable-files-with-executable-bit.check ] ; then
	echo "found"
	cat tests/non-executable-files-with-executable-bit.check
	false
else
	rm tests/non-executable-files-with-executable-bit.check
	echo "none found"
	true
fi
 |