#!/bin/sh . "${0%/*}/common.sh" if [ "$1" != -p ]; then cmd cd /usr/portage cmd git fetch chks= d=/home/alex/gentoo-overlay for chk in $d/*/*; do f=${chk#$d/} case "$f" in metadata/layout.conf|profiles/repo_name) continue esac case "$f" in profiles/*) f=profiles/base/${f#profiles/} esac if [ -e "$f" ]; then chks="$chks $f" fi done cmd git --no-pager log --oneline ..@{u} -- $chks dev-java/openjdk dev-java/openjdk-bin dev-java/openjdk-jre-bin virtual/jdk virtual/jre profiles/base/package.use.mask stashed= if [ "$(git status --porcelain | head -c1)" != "" ]; then cmd git stash stashed=1 fi cmd git rebase @{u} if [ -n "$stashed" ]; then cmd git stash pop fi cmd sudo emerge --sync for f in /etc/portage/repo.postsync.d/*; do if [ -x "$f" ]; then cmd "$f" gentoo "" /usr/portage fi done cmd mv /var/cache/eix/portage.eix /var/cache/eix/previous.eix cmd sudo eix-update cmd sudo eix-diff fi if [ "$(eselect news count)" != 0 ]; then cmd sudo eselect news read printf 'Press enter to continue...\n' read REPLY fi cmd sudo emerge -uD --changed-use @world cmd sudo smart-live-rebuild -- --usepkg=n # needs --usepkg-exclude #cmd sudo emerge @preserved-rebuild cmd sudo dispatch-conf cmd sudo emerge --depclean --deep --verbose=n cmd sudo revdep-rebuild --ignore --verbose -- --usepkg=n