rpm-build/scripts/lib.req.files

11 lines
249 B
Bash
Executable File

#!/bin/sh -efu
while IFS=$'\t' read -r f t; do
case "$t" in
*ELF*" shared object"*)
echo "$f" ;;
*ELF*" executable"*"dynamically linked"*)
[ -x "$f" ] && echo "$f" ||
echo "${0##*/}: ELF executable $f not executable" >&2 ;;
esac
done