#!/bin/sh OVERLAY="$(portageq get_repo_path / xfce-dev)" pushd "${OVERLAY}" >/dev/null for i in $(git status --porcelain|grep ebuild|awk '{ print $2 }'); do pkgs+=" $(dirname ${i})" done for i in ${pkgs}; do pushd ${i} >/dev/null repoman ci -m "$(basename ${i}): Sync with gentoo-x86" popd >/dev/null done popd >/dev/null