From 67b68cbeb97831844dd06bc6e231a3d78f348bde Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 10 Oct 2007 11:30:37 +0300 Subject: pkgconfig dependency script fixes - don't make assumptions about package names, requires pkg-config executable path instead - always create pkg-config dependency if *.pc files are included, not just in case the *.pc file requires other pkg-config modules --- scripts/pkgconfigdeps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/pkgconfigdeps.sh b/scripts/pkgconfigdeps.sh index 7a8123437..882d19595 100755 --- a/scripts/pkgconfigdeps.sh +++ b/scripts/pkgconfigdeps.sh @@ -30,9 +30,9 @@ case $1 in while read filename ; do case "${filename}" in *.pc) + i="`expr $i + 1`" + [ $i -eq 1 ] && echo "$pkgconfig" $pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do - i="`expr $i + 1`" - [ $i -eq 1 ] && echo "pkgconfig" echo "pkgconfig($n)" "$r" "$v" done esac -- cgit v1.2.3