aboutsummaryrefslogtreecommitdiffstats
path: root/pkgconfigdeps.sh
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-09-08 12:11:56 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-09-09 15:06:24 +0200
commitcea592b92aafca657076adf21bae2ffc570ceb95 (patch)
treebe0a3ad0f3008526936559a6623e29c3c0cdbc54 /pkgconfigdeps.sh
parentd9b3b95348486255d5d0baf3abe0a71d2875fbee (diff)
downloadrpm-setup-cea592b92aafca657076adf21bae2ffc570ceb95.tar
rpm-setup-cea592b92aafca657076adf21bae2ffc570ceb95.tar.gz
rpm-setup-cea592b92aafca657076adf21bae2ffc570ceb95.tar.bz2
rpm-setup-cea592b92aafca657076adf21bae2ffc570ceb95.tar.xz
rpm-setup-cea592b92aafca657076adf21bae2ffc570ceb95.zip
sync (6/8): process one file at a time
Diffstat (limited to 'pkgconfigdeps.sh')
-rwxr-xr-xpkgconfigdeps.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh
index 2d85a51..4d9429d 100755
--- a/pkgconfigdeps.sh
+++ b/pkgconfigdeps.sh
@@ -21,11 +21,10 @@ case $1 in
while read filename ; do
case "${filename}" in
*.pc)
- pcfiles=${pcfiles}" ${filename}"
DIR="`dirname ${filename}`"
export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
# Query the dependencies of the package.
- $pkgconfig --print-errors --print-provides $pcfiles | while read n r v ; do
+ $pkgconfig --print-errors --print-provides $filename | while read n r v ; do
# We have a dependency. Make a note that we need the pkgconfig
# tool for this package.
test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1
@@ -41,10 +40,9 @@ case $1 in
while read filename ; do
case "${filename}" in
*.pc)
- pcfiles=${pcfiles}" ${filename}"
DIR="`dirname ${filename}`"
export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
- $pkgconfig --print-errors --print-requires --print-requires-private ${pcfiles} | while read n r v ; do
+ $pkgconfig --print-errors --print-requires --print-requires-private $filename | while read n r v ; do
test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1
echo "pkgconfig($n)" "$r" "$v"
done