Corrected script, suggest using with >portage-2.0.51.
Here's a script I have to handle running the updates.
If the portage hasn't been synced that day, it will clean out the ccache files and distfiles, then sync portage.
Last line runs emerge to start updating the all the packages.
#!/bin/bash # # File: update.sh # Version: 20050421 # Author: Kirk Schneider # About: script to handle Gentoo portage updates # TIMESTAMP=`find /usr/portage/metadata/ -maxdepth 1 -type f -mtime 0` if [ -z "${TIMESTAMP}" ]; then if [ -f /usr/bin/ccache ]; then /usr/bin/ccache -C fi rm /usr/portage/distfiles/* rm -rf /var/tmp/portage/* if [ -n "${RSYNC_PROXY}" ]; then /usr/bin/emerge --sync elif [ -n "${http_proxy}" ]; then /usr/sbin/emerge-webrsync elif [ -n "${ftp_proxy}" ]; then /usr/sbin/emerge-webrsync else /usr/bin/emerge --sync fi /usr/sbin/fixpackages fi /usr/bin/emerge --ask --deep --newuse --update --verbose world
-- Kirk Schneider -- gentoo-user@gentoo.org mailing list