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