Commit ed9d2534 authored by Vitaly Lipatov's avatar Vitaly Lipatov

test for recursive required

parent 32ac9c92
#!/bin/sh
. `dirname $0`/../share/eterbuild/functions/common
get_wd()
{
apt-cache whatdepends $1 | grep "^ [a-zA-Z]" | sed -e "s|^ *||g"
}
list_wd()
{
for i in $@ ; do
#echo i=$i
get_wd `echo $i | sed "s|-[0-9].*||g"`
done
}
USEDBY=$(get_wd libmpfr)
echo "Required by:"
print_list $USEDBY
echo "Second required by:"
print_list `list_wd $USEDBY`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment