From: Mike Frysinger Date: Sun, 16 Aug 2009 20:04:53 +0000 (-0400) Subject: update gentoo aliases X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=39d58573fc0d8290254183273a5f228d7cebbb1f;p=home.git update gentoo aliases --- diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index e186cf9..34bb31f 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -63,6 +63,22 @@ git_gentoo_url() { git log -n3 ${1:-HEAD} | \ sed "s,^commit ,http://git.overlays.gentoo.org/gitweb/?p=${repo};a=commitdiff;h=," } +svn_gentoo_url() { + local f + for f in "$@" ; do + svn info "${f}" | \ + awk '{ + if ($1 == "URL:") { + sub(/.*svnroot/,"") + URL = "http://sources.gentoo.org" $1 "?" + } else if ($1 == "Revision:") { + rev = $2 + URL = URL "r1=" rev "&r2=" (rev + 1) + } + } + END { print URL }' + done +} er() { [[ ! -e ChangeLog ]] \ @@ -88,7 +104,7 @@ arch_emails() { if [[ $@ == *.ebuild* ]] ; then local e keys for e in "$@" ; do - keys=$(sed -n '/^KEYWORD/{s:.*=::;s:"::g;p}' ${e}) + keys=$(sed -n '/^[[:space:]]*KEYWORD/{s:.*=::;s:"::g;p}' ${e}) for a in ${keys} ; do [[ ${a} != ~* ]] && continue ret="${ret} ${a/\~}@gentoo.org" @@ -136,7 +152,15 @@ submit_bug_stable() { -a "${maintainer}" \ --cc="${cc}" \ -U "" \ - -k STABLEREQ + -k STABLEREQ \ + --product='Gentoo Linux' \ + --component=Ebuilds \ + --version= \ + --no-append-command \ + --depends-on= \ + --blocked= \ + --priority=P2 \ + --severity=enhancement } eskeys() {