On Sun, 15 Oct 2017 09:46:26 -0500, Dale wrote:

> I was thinking it may be harder than one thinks since I don't know of a
> way to do it but have seen some who want something that does it.  I'd be
> happy if it just told me what USE flags no longer exist at all.  My USE
> line in make.conf is quite lengthy.  I'm certain a lot of it could be
> gone.  Some may not have existed for years. 

How about something like this?

source /etc/portage/make.conf
for flag in $USE; do
    grep -q '^${flag} ' $PORTDIR/profile/use.desc || \
      grep -q ':${flag} ' $PORTDIR/profile/use.local.desc || \
      echo "${flag} not found in use.desc or use.local.desc"
fi


-- 
Neil Bothwick

OPERATOR ERROR: Nyah, Nyah, Nyah, Nyah, Nyah!

Attachment: pgpzIAbUdkyFH.pgp
Description: OpenPGP digital signature

Reply via email to