5 # Our shared libraries are currently executable (is that a bug?), so
6 # we exclude anything that looks like a shared library
7 for f in `find bindisttest/a/b/c -type f -perm -u+x ! -name '*.so' ! -name '*.dylib' ! -name '*.dll'`
9 if grep -q '("GHC RTS", "YES")' "$f"
11 # Looks like a GHC executable. Is it for the right version?
12 THIS_VERSION=`./$f +RTS --info | grep '"GHC version"' | sed -e 's/^ ,("GHC version", "//' -e 's/")$//'`
13 if [ "$THIS_VERSION" != "$EXPECTED_VERSION" ]
15 echo "Bad GHC version '$THIS_VERSION' for '$f'" >&2