aboutsummaryrefslogtreecommitdiffstats
path: root/pkgconfigdeps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgconfigdeps.sh')
-rwxr-xr-xpkgconfigdeps.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh
index 962f47d..b4dc125 100755
--- a/pkgconfigdeps.sh
+++ b/pkgconfigdeps.sh
@@ -17,8 +17,10 @@ case $1 in
case "${filename}" in
*.pc)
# Assume that this file doesn't contain useful information.
- pcfiles=${pcfiles}" ${filename}"
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
+ if [[ "$(dirname ${filename})" =~ pkgconfig ]]; then
+ pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
+ fi
;;
esac
done
@@ -39,8 +41,10 @@ case $1 in
while read filename ; do
case "${filename}" in
*.pc)
- pcfiles=${pcfiles}" ${filename}"
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
+ if [[ "$(dirname ${filename})" =~ pkgconfig ]]; then
+ pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
+ fi
esac
done
if [ -n "$pcfiles" ]