The longer you run a Gentoo system, the more likely you are to end up
with unused use flags. Its something I have thought about for some time,
just never did anything about it. I finally wrote a little script to
find what use flags are not in use, and remove them from make.conf.
Just slapped it together and likely can be improved. But its worked so
far for me, cleaned up a bunch of use flags :)
#!/bin/bash
source /etc/make.conf
for flag in ${USE}; do
equery hasuse "${flag}" > /dev/null 2>&1
if [ "$?" -eq 1 ]; then
echo "Unused use flag -> ${flag}"
sed -i -e "s|${flag}||" /etc/make.conf
fi
done
--
William L. Thomson Jr.
Obsidian-Studios, Inc.
http://www.obsidian-studios.com
---------------------------------------------------------------------
Archive http://marc.info/?l=jaxlug-list&r=1&w=2
RSS Feed http://www.mail-archive.com/[email protected]/maillist.xml
Unsubscribe [email protected]