Another day, another thread about multiple occurences of a flag in
use.local.desc.  Howsabout a serious overall look at the situation?
Start with the following short script...

#!/bin/bash
rm -rf flagcount0.txt
sed "s/:/ /" /usr/portage/profiles/use.local.desc | \
   cut -d \  -f 2 | \
   sort -u > /dev/shm/flags.txt
while read flag
do
   echo -n "${flag} " >> flagcount0.txt
   grep -c ":${flag} " /usr/portage/profiles/use.local.desc >>
flagcount0.txt
done < /dev/shm/flags.txt
sort -n -r -k2,2 flagcount0.txt > flagcount.txt

  The final result is that flagcount.txt has a count, in descending
order, of each flag in use.local.desc.  It does need some manual
cleaning up, which I've done.  It's file-attached.  I've included all
flags with 5 or more occurences, as well as stuff that looks like it is,
or should be, a USE_expand var.  The developers may want to look at the
issue of hyphens versus underscores.

-- 
Walter Dnes <[email protected]>
I don't run "desktop environments"; I run useful applications

Attachment: flagcount.txt.gz
Description: Binary data

Reply via email to