]> git.wh0rd.org Git - home.git/commitdiff
update gentoo stuff
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Jan 2010 05:19:25 +0000 (00:19 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:35 +0000 (15:36 -0400)
.profile.d/gentoo.sh

index 34bb31f51375ae9d67d3a8cf251e3195ef5d065b..3e9a6bcfeffb50a7000ea5761e447d76e3030cff 100644 (file)
@@ -64,6 +64,20 @@ git_gentoo_url() {
                sed "s,^commit ,http://git.overlays.gentoo.org/gitweb/?p=${repo};a=commitdiff;h=,"
 }
 svn_gentoo_url() {
+       if [[ -z $* ]] ; then
+               svn info | \
+               awk '{
+                       if ($1 == "URL:") {
+                               URL = "http://sources.gentoo.org/" gensub(/.*svnroot\/([^/]*).*/,"\\1","");
+                       } else if ($1 == "Revision:") {
+                               rev = $2
+                               URL = URL "?rev=" (rev + 1) "&view=rev"
+                       }
+               }
+               END { print URL }'
+               return 0
+       fi
+
        local f
        for f in "$@" ; do
                svn info "${f}" | \
@@ -146,19 +160,15 @@ submit_bug_stable() {
                return 1
        fi
        bugz post \
+               --batch \
                -u vapier@gentoo.org \
                -t "Stabilize ${cat}/${pkg}" \
                -d "${msg}" \
                -a "${maintainer}" \
                --cc="${cc}" \
-               -U "" \
                -k STABLEREQ \
                --product='Gentoo Linux' \
                --component=Ebuilds \
-               --version= \
-               --no-append-command \
-               --depends-on= \
-               --blocked= \
                --priority=P2 \
                --severity=enhancement
 }