rpm-build/scripts/pkgconfig.req.files
Dmitry V. Levin 5a8fdc10de pkgconfig.req.files: ignore file type, treat all non-symlinks the same way
Stop relying on file(1) output for obvious reasons (see e.g. ALT#28261),
assume that all non-symlinks in pkgconfig directories are valid input.
2012-12-22 14:41:22 +00:00

14 lines
316 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/share/pkgconfig/*.pc) ;;
${RPM_BUILD_ROOT-}$RPM_LIBDIR/pkgconfig/*.pc) ;;
*) continue ;;
esac
case "$t" in
*'symbolic link to '*) ;;
*) echo "$f" ;;
esac
done