diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-10 11:30:37 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-10 11:30:37 +0300 |
commit | 67b68cbeb97831844dd06bc6e231a3d78f348bde (patch) | |
tree | b9688aaf330b630ba7ad24a822c9a20f67472693 /scripts | |
parent | 5dd1a5baa571b994559579fb6ee6289f51257ee7 (diff) | |
download | librpm-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-x | scripts/pkgconfigdeps.sh | 4 |
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 |