19 lines
407 B
Bash
Executable File
19 lines
407 B
Bash
Executable File
#!/bin/sh -efu
|
|
[ -n "${RPM_LIBDIR-}" ] || RPM_LIBDIR=`rpm --eval %_libdir`
|
|
while IFS=$'\t' read -r f t; do
|
|
case "$f" in
|
|
${RPM_BUILD_ROOT-}/usr/include/*) ;;
|
|
${RPM_BUILD_ROOT-}$RPM_LIBDIR/*/*) ;;
|
|
*) continue ;;
|
|
esac
|
|
case "$f" in
|
|
*.h | *.H | *.hh | *.hpp ) ;;
|
|
*) continue ;;
|
|
esac
|
|
case "$t" in
|
|
*' text'*) echo "$f" ;;
|
|
*'symbolic link to '*) ;;
|
|
*) echo "${0##*/}: $f: $t" >&2 ;;
|
|
esac
|
|
done
|