]> git.wh0rd.org Git - home.git/commitdiff
update gentoo aliases
authorMike Frysinger <vapier@gentoo.org>
Sun, 16 Aug 2009 20:04:53 +0000 (16:04 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:08 +0000 (15:36 -0400)
.profile.d/gentoo.sh

index e186cf9a96315ef49d9ad635e4edcab5575abe6d..34bb31f51375ae9d67d3a8cf251e3195ef5d065b 100644 (file)
@@ -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() {