support optdepends

Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Ray Rashif 2010-10-05 17:11:44 +08:00 committed by Pierre Schmitz
parent 2ed8ef1185
commit 38f85d654a
1 changed files with 7 additions and 0 deletions

View File

@ -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