summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Rashif <schivmeister@gmail.com>2010-10-05 17:11:44 +0800
committerPierre Schmitz <pierre@archlinux.de>2011-03-26 09:39:37 +0100
commit38f85d654aa93401fd90cbe44994ea894f73635f (patch)
tree9165b277f3de4dd3a5addb2757cde28c55658a38
parent2ed8ef11855e4c1c56a629bac60cf8700bd5b819 (diff)
downloaddevtools-38f85d654aa93401fd90cbe44994ea894f73635f.tar.xz
support optdepends
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-xfinddeps7
1 files changed, 7 insertions, 0 deletions
diff --git a/finddeps b/finddeps
index c47518a..fcf18db 100755
--- a/finddeps
+++ b/finddeps
@@ -34,6 +34,13 @@ for d in $(find . -type d); do
echo "$d (makedepends)"
fi
done
+ for dep in "${optdepends[@]/:*}"; do
+ # lose the version comaparator, if any
+ depname=${dep%%[<>=]*}
+ if [ "$depname" = "$match" ]; then
+ echo "$d (optdepends)"
+ fi
+ done
fi
cd $tld
done