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