From: Mike Frysinger Date: Sun, 15 Aug 2010 05:05:02 +0000 (-0400) Subject: update gentoo helpers X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2239c2391a9774fca3210e716761b65da3c7defb;p=home.git update gentoo helpers --- diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index 3e9a6bc..04a6c32 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -94,13 +94,21 @@ svn_gentoo_url() { done } -er() { +_echangelog() { [[ ! -e ChangeLog ]] \ && echo "No ChangeLog" \ && return 1 echangelog "$@" || return 1 +} +er() { + _echangelog "$@" || return 1 repoman commit -m "$@" || return 1 } +ec() { + _echangelog "$@" || return 1 + cvs commit -m "$@" || return 1 +} + att() { declare url=$1 tmp=$(mktemp) filename || return 1 [[ $url == */* ]] || url="http://bugs.gentoo.org/attachment.cgi?id=$url" @@ -154,7 +162,7 @@ submit_bug_stable() { local cat=$(basename $(dirname $(pwd))) local pkg=${1%.ebuild} local ebuild=${pkg}.ebuild - local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-fbsd|mips)@[^ ]*::g') + local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-[^ ]*|mips)@[^ ]*::g') if [[ -z ${cc} ]] ; then echo "Unable to read ebuild '${ebuild}'" return 1