Elliot Lee 5fc6cf
#!/bin/bash
Elliot Lee 5fc6cf
pkgconfig=${1:-/usr/bin/pkg-config}
Elliot Lee 5fc6cf
test -x $pkgconfig || exit 0
Elliot Lee 5fc6cf
while read filename ; do
Elliot Lee 5fc6cf
case "${filename}" in
Elliot Lee 5fc6cf
*.pc)
26a7fa
	$pkgconfig --print-requires --print-requires-private "$filename" 2> /dev/null | while read n r v ; do
Elliot Lee 5fc6cf
		echo "pkgconfig($n)" "$r" "$v"
Elliot Lee 5fc6cf
	done
Elliot Lee 5fc6cf
esac
Elliot Lee 5fc6cf
done