verify_cxx11_requirements.sh 379 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. set -e
  3. FILES=$( find "${SEARCH_PATH}" -name "*.node" -not -path "*prebuilds*" -not -path "*extensions/node_modules/@parcel/watcher*" )
  4. echo "Verifying requirements for files: ${FILES}"
  5. for FILE in ${FILES}; do
  6. if [[ -n "$( strings "${FILE}" | grep cxx11 | tail -n1 )" ]]; then
  7. echo "Error: File ${FILE} has dependency on CXX11"
  8. exit 1
  9. fi
  10. done