#!/bin/bash cvs="/usr/local/share/gentoo-x86/" cat="${1}" usage() { echo "Usage: ${0##*/} CATEGORY" echo " Commit all ebuilds in the current category to CATEGORY in the CVS tree." echo " Run from the category level." exit 1 } if [[ $# -ne 1 ]]; then usage fi if [[ ${cat:${#cat}-1:1} != / ]]; then cat="${cat}/" fi for i in */*.ebuild; do ip=${i%/*} iv=${i#*/} iv=${iv%.ebuild} cp ${i} ${cvs}${cat}${ip}/ cp ${ip}/files/digest-${iv} ${cvs}${cat}${ip}/files/ pushd ${cvs}${cat}${ip}/ cvs add ${iv}.ebuild files/digest-${iv} echangelog "Bump for 7.0RC3." repoman ci -m "Bump for 7.0RC3." popd done