Dmitry V. Levin
5a8fdc10de
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.
14 lines
316 B
Bash
Executable File
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
|