#!/bin/bash if [[ $# -eq 0 ]]; then echo "${0##*/} message" exit 1 fi cat="${PWD##*/}/" msg="${1:-Bump.}" cvs="${2:-/home/donnie/src/gentoo-x86/}" for ip in *; do for i in ${ip}/*.ebuild; do iv=${i#*/} iv=${iv%.ebuild} cp ${i} ${cvs}${cat}${ip}/ pushd ${cvs}${cat}${ip}/ cvs up cvs add ${iv}.ebuild if [[ $? -eq 0 ]]; then ekeyword ~all ${iv}.ebuild fi popd done pushd ${cvs}${cat}${ip}/ ebuild ${iv}.ebuild digest echangelog "${msg}" repoman ci -m "${msg}" popd done