Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
echo -n "testing files for executable bits that shouldn't be executable ... " |
| 4 |
|
| 5 |
cd $(dirname $0)/.. |
| 6 |
find * -executable -type f | \ |
| 7 |
grep -vE "^debian/" | # Ignore Debian files \ |
| 8 |
grep -vE "compile|config\.(guess|status|sub)|configure|depcomp|install-sh|libtool|missing" | # Ignore autotools output \ |
| 9 |
grep -vE "build" | # Ignore cmake output \ |
| 10 |
grep -vE ".*\.test|tests/common|src(/\.libs)?/(e?speak-ng|.*\.so\..*)|src/\.libs/lt-espeak-ng|android" | # Ignore built programs and libraries \ |
| 11 |
grep -vE ".*\.sh|tools/emoji" | # Ignore helper scripts \ |
| 12 |
grep -vE "src/ucd-tools/tools/(.*\.py|mkencodingtable)" | # Ignore ucd-tools helper scripts \ |
| 13 |
grep -vE "tests/.libs|src/ucd-tools/tests/print(ucd|c)data(_cpp)?" | # Ignore ucd-tools test programs \ |
| 14 |
grep -vE "tests/fuzzing/.*\.py" | #Ignore fuzzing python helper script |
| 15 |
grep -vE "tests/fuzzing/.*\.sh" | #Ignore fuzzing python helper script |
| 16 |
tee tests/non-executable-files-with-executable-bit.check > /dev/null |
| 17 |
|
| 18 |
if [ -s tests/non-executable-files-with-executable-bit.check ] ; then |
| 19 |
echo "found" |
| 20 |
cat tests/non-executable-files-with-executable-bit.check |
| 21 |
false |
| 22 |
else |
| 23 |
rm tests/non-executable-files-with-executable-bit.check |
| 24 |
echo "none found" |
| 25 |
true |
| 26 |
fi |