David Learns Programming

x86 update

#!/bin/bash
. /etc/init.d/functions.sh
ebegin "Updating x86 test box"
eend $?
rm -rf /etc/portage/package.keywords/*
einfo "removed all files from package.keywords"
eend $?
sed -i -e '/^ *$/d' /etc/make.conf
sed -i -e 's:FEATURES="${FEATURES} test": :' /etc/make.conf
emerge --sync;
emerge --depclean;
emerge -uD world;
revdep-rebuild
einfo "Update complete updating make.conf"
eend $?
echo 'FEATURES="${FEATURES} test"' >> /etc/make.conf