From: Mike Frysinger Date: Tue, 19 Jan 2010 05:19:25 +0000 (-0500) Subject: update gentoo stuff X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5b85a493bba25de492c0c551e6014a6da46e9776;p=home.git update gentoo stuff --- diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index 34bb31f..3e9a6bc 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -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 }