From 2239c2391a9774fca3210e716761b65da3c7defb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 15 Aug 2010 01:05:02 -0400 Subject: [PATCH] update gentoo helpers --- .profile.d/gentoo.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.39.2