I found this script handy when recompiling package if I change useflags:

/John






john@newkid john $ cat /usr/local/bin/using
#!/bin/bash
packlist=/tmp/packlist
 
if [ -z "$1" ] || [ "${1:1:1}" = "-" ]
then
# When we do wrong, abort emerge
        echo -p
 
cat <<EOT >&2
Usage: emerge \$($0 [arg1] [arg2]...)
Where [arg?] is a useflag
EOT
        exit 0
fi
 
emerge --emptytree --verbose --pretend world | grep 'ebuild' > $packlist
 
while [ -n "$1" ]
do
        packs="$packs $(cat $packlist | egrep
[[:space:]][-+]$1[[:space:]] | cut -d " " -f 7 | sed s/\-[0-9].*//)"
        shift
done
 
rm $packlist
echo $packs
 


--
[EMAIL PROTECTED] mailing list

Reply via email to