portage-exclude script

This commit is contained in:
Kolan Sh 2011-07-05 17:27:22 +04:00
parent 15ea11fd4e
commit ce665559df
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
cd /usr/portage/ || exit -1
for d in *-*; do
if [[ `qlist -IC $d/ | wc -l` == 0 ]]; then
echo $d/
else
for pn in $d/*; do
if [[ `qlist -IC $pn | wc -l` == 0 ]]; then
echo $pn/
fi
done
fi
done