rpm-build/scripts/debuginfo.req.files
Ivan Zakharyaschev 5630438416 debuginfo.req.files: ignore everything under /usr/lib/debug/.build-id/
The special directory structure there doesn't correspond to the
directory structure where debuginfo.req expects to find and process
*.debug files.
2016-04-05 22:57:42 +03:00

15 lines
308 B
Bash
Executable File

#!/bin/sh -efu
while IFS=$'\t' read -r f t; do
case "$f" in
${RPM_BUILD_ROOT-}/usr/lib/debug/.build-id/*) continue ;;
${RPM_BUILD_ROOT-}/usr/lib/debug/*.debug) ;;
*) continue ;;
esac
case "$t" in
*ELF*' shared object'*) ;;
*ELF*' executable'*) ;;
*) continue ;;
esac
printf '%s\n' "$f"
done