diff options
author | Ray Rashif <schivmeister@gmail.com> | 2010-10-05 17:11:44 +0800 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-03-26 09:39:37 +0100 |
commit | 38f85d654aa93401fd90cbe44994ea894f73635f (patch) | |
tree | 9165b277f3de4dd3a5addb2757cde28c55658a38 /finddeps | |
parent | 2ed8ef11855e4c1c56a629bac60cf8700bd5b819 (diff) | |
download | devtools32-38f85d654aa93401fd90cbe44994ea894f73635f.tar.xz |
support optdepends
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'finddeps')
-rwxr-xr-x | finddeps | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |