summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-10-10 11:30:37 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-10-10 11:30:37 +0300
commit67b68cbeb97831844dd06bc6e231a3d78f348bde (patch)
treeb9688aaf330b630ba7ad24a822c9a20f67472693 /scripts
parent5dd1a5baa571b994559579fb6ee6289f51257ee7 (diff)
downloadlibrpm-tizen-67b68cbeb97831844dd06bc6e231a3d78f348bde.tar.gz
librpm-tizen-67b68cbeb97831844dd06bc6e231a3d78f348bde.tar.bz2
librpm-tizen-67b68cbeb97831844dd06bc6e231a3d78f348bde.zip
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pkgconfigdeps.sh4
1 files changed, 2 insertions, 2 deletions
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