aboutsummaryrefslogtreecommitdiffstats
path: root/pkgconfigdeps.sh
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-09-08 12:09:23 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-09-09 15:06:23 +0200
commitd9b3b95348486255d5d0baf3abe0a71d2875fbee (patch)
treee1c470ba0c565a7ad8e30a3429049574a869f0da /pkgconfigdeps.sh
parentda29c8521b966c09ba93f1c24b86196b2e6e7a5e (diff)
downloadrpm-setup-d9b3b95348486255d5d0baf3abe0a71d2875fbee.tar
rpm-setup-d9b3b95348486255d5d0baf3abe0a71d2875fbee.tar.gz
rpm-setup-d9b3b95348486255d5d0baf3abe0a71d2875fbee.tar.bz2
rpm-setup-d9b3b95348486255d5d0baf3abe0a71d2875fbee.tar.xz
rpm-setup-d9b3b95348486255d5d0baf3abe0a71d2875fbee.zip
sync (5/8): just export the variable
Diffstat (limited to 'pkgconfigdeps.sh')
-rwxr-xr-xpkgconfigdeps.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh
index d2c72e3..2d85a51 100755
--- a/pkgconfigdeps.sh
+++ b/pkgconfigdeps.sh
@@ -23,9 +23,9 @@ case $1 in
*.pc)
pcfiles=${pcfiles}" ${filename}"
DIR="`dirname ${filename}`"
- PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
+ export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
# Query the dependencies of the package.
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-errors --print-provides $pcfiles | while read n r v ; do
+ $pkgconfig --print-errors --print-provides $pcfiles | 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
@@ -43,8 +43,8 @@ case $1 in
*.pc)
pcfiles=${pcfiles}" ${filename}"
DIR="`dirname ${filename}`"
- PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-errors --print-requires --print-requires-private ${pcfiles} | while read n r v ; do
+ export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
+ $pkgconfig --print-errors --print-requires --print-requires-private ${pcfiles} | 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