aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpkgconfigdeps.sh13
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh
index 75c8fa1..94d5e16 100755
--- a/pkgconfigdeps.sh
+++ b/pkgconfigdeps.sh
@@ -21,11 +21,8 @@ case $1 in
while read filename ; do
case "${filename}" in
*.pc)
- # Assume that this file doesn't contain useful information.
- if [[ "$(dirname ${filename})" =~ pkgconfig ]]; then
- pcfiles=${pcfiles}" ${filename}"
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
- fi
+ pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
;;
esac
done
@@ -46,10 +43,8 @@ case $1 in
while read filename ; do
case "${filename}" in
*.pc)
- if [[ "$(dirname ${filename})" =~ pkgconfig ]]; then
- pcfiles=${pcfiles}" ${filename}"
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
- fi
+ pcfiles=${pcfiles}" ${filename}"
+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(dirname ${filename})
esac
done
if [ -n "$pcfiles" ]