#!/bin/sh

okay_strings="| grep -v 'Python script' \
| grep -v 'Bourne-Again shell script' \
| grep -v 'ASCII text'"

echo "okay strings: '$okay_strings'"
hd=/home/dilinger/sid/chromium-100.0.4896.60-notlite/third_party/devtools-frontend/src/test/

# check for prebuilt binary files
list=$(find $hd -type f -not -empty -exec file \{\} \; | grep -v 'Python script' \
| grep -v 'Bourne-Again shell script' \
| grep -v 'very short file' \
| grep -v '.pyc:' \
| grep -v '.so:' \
| grep -v 'UTF-8 text' \
| grep -v 'JSON data' \
| grep -v 'PNG image' \
| grep -v 'GIF image' \
| grep -v 'PEM certificate' \
| grep -v 'PEM RSA private key' \
| grep -v 'ASCII text')
if [ -n "$list" ]; then
    echo "prebuilt binary files:"
    echo "$list"
    exit 1
fi

