summaryrefslogtreecommitdiff
path: root/scripts/pkgconfig.req.sh
blob: ff4f8bd0c7d4abe835338cd426b0212ed811d79f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
pkgconfig=${1:-/usr/bin/pkg-config}
test -x $pkgconfig || exit 0
while read filename ; do
case "${filename}" in
*.pc)
	$pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do
		echo "pkgconfig($n)" "$r" "$v"
	done
esac
done