]> git.wh0rd.org Git - home.git/commitdiff
update gentoo helpers
authorMike Frysinger <vapier@gentoo.org>
Sun, 15 Aug 2010 05:05:02 +0000 (01:05 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:36 +0000 (15:36 -0400)
.profile.d/gentoo.sh

index 3e9a6bcfeffb50a7000ea5761e447d76e3030cff..04a6c32038322fa24f413dc1893787dbf8291abd 100644 (file)
@@ -94,13 +94,21 @@ svn_gentoo_url() {
        done
 }
 
        done
 }
 
-er() {
+_echangelog() {
        [[ ! -e ChangeLog ]] \
                && echo "No ChangeLog" \
                && return 1
        echangelog "$@" || return 1
        [[ ! -e ChangeLog ]] \
                && echo "No ChangeLog" \
                && return 1
        echangelog "$@" || return 1
+}
+er() {
+       _echangelog "$@" || return 1
        repoman commit -m "$@" || 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"
 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 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
        if [[ -z ${cc} ]] ; then
                echo "Unable to read ebuild '${ebuild}'"
                return 1