Package: devscripts Version: 2.9.7 Severity: wishlist Tags: patch Hi.
The attached patch includes a very simple, yet very useful script that fetches a box report mbox and displays it in mutt. The patch is against my the devscripts version that already includes the "dget" script. I can create another patch without that, if needed. Please consider adding that script - thanks. Christoph -- [EMAIL PROTECTED] | http://www.df7cb.de/
Binärdateien /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/.Makefile.swp and /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/.Makefile.swp sind verschieden. diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/Makefile /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/Makefile --- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/Makefile 2005-10-05 18:46:08.000000000 +0200 +++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/Makefile 2005-10-07 02:03:53.000000000 +0200 @@ -8,7 +8,7 @@ SH_FILES = cvs-debi.sh cvs-debrelease.sh debclean.sh debrelease.sh \ debrsign.sh debsign.sh dpkg-genbuilddeps.sh mergechanges.sh \ tagpending.sh uscan.sh uupdate.sh wnpp-alert.sh whodepends.sh \ - annotate-output.sh archpath.sh deb-reversion.sh + annotate-output.sh archpath.sh deb-reversion.sh bug.sh LIBS = libvfork.so.0 @@ -20,7 +20,7 @@ EXAMPLES = conf.default MAN1S = $(SCRIPTS:=.1) debc.1 cvs-debc.1 devscripts.1 -GEN_MAN1S = bts.1 svnpath.1 debcommit.1 deb-reversion.1 dget.1 +GEN_MAN1S = bts.1 svnpath.1 debcommit.1 deb-reversion.1 dget.1 bug.1 MAN5S = devscripts.conf.5 MANS_fr_DIR = po4a/fr MAN1S_fr = $(subst $(MANS_fr_DIR)/,,$(wildcard $(MANS_fr_DIR)/*.1)) diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/README /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/README --- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/README 2005-10-05 18:49:42.000000000 +0200 +++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/README 2005-10-07 02:21:00.000000000 +0200 @@ -27,6 +27,9 @@ accessing the BTS, both to send mails to [EMAIL PROTECTED] and to access the web pages of the BTS. +- bug [wget, mutt]: fetch bug mbox from bugs.debian.org and display it + in mutt + - checkbashisms: checks whether a /bin/sh script uses any common bash-specific features diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.pl /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.pl --- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.pl 1970-01-01 01:00:00.000000000 +0100 +++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.pl 2005-10-07 02:17:18.000000000 +0200 @@ -0,0 +1,52 @@ +# Display bug mbox from bugs.debian.org in mutt +# (c) 2005 Christoph Berg <[EMAIL PROTECTED]> +# usage: bug <number> + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +=pod + +=head1 NAME + +bug -- Display bug mbox from bugs.debian.org in mutt + +=head1 SYNOPSIS + +=over + +=item B<bug> I<bug-number> + +=back + +=head1 DESCRIPTION + +B<bug> takes a bug number and fetches the bug report mbox from bugs.debian.org. +The mbox is displayed using mutt. +When formail/procmail is installed, the messages get Reply-To headers pointing +back to [EMAIL PROTECTED] + +=head1 OPTIONS + +B<bug> does not have options. + +=head1 AUTHORS + +=over + +=item Christoph Berg <[EMAIL PROTECTED]> (Code) + +=item Adeodato Sim� <[EMAIL PROTECTED]> (Ideas) + +=back + diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.sh /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.sh --- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/bug.sh 1970-01-01 01:00:00.000000000 +0100 +++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/bug.sh 2005-10-07 02:15:44.000000000 +0200 @@ -0,0 +1,57 @@ +#!/bin/sh + +# Display bug mbox from bugs.debian.org in mutt +# (c) 2005 Christoph Berg <[EMAIL PROTECTED]> +# usage: bug <number> + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +# 2005-10-07 cb: initial release + +if [ -x /usr/bin/wget ] ; then + WGET="wget -q -O -" +elif [ -x /usr/bin/curl ] ; then + WGET="curl -s -f" +else + echo "$0: neither wget nor curl found" 1>&2 + exit 1 +fi + +ID=`echo "$1" | sed -e 's/[^0-9]*//g'` +if [ -z "$ID" ] || [ ! "$ID" -gt 0 ] ; then + echo "usage: $0 <bug-number>" + exit 1 +fi + +URL="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=$ID&mbox=yes" +BOX=`mktemp -t \#$ID.XXXXXX` + +if [ -x /usr/bin/formail ] ; then + PROCMAILRC=`mktemp -t \#$ID.procmailrc.XXXXXX` + cat > "$PROCMAILRC" << EOF +:0f +* !^Reply-To: +| formail -i"Reply-To: [EMAIL PROTECTED]" +:0 +| +EOF + $WGET "$URL" | formail -s procmail -m "$PROCMAILRC" "$ID" > "$BOX" + rm -f "$PROCMAILRC" +else + $WGET "$URL" > "$BOX" +fi + +mutt -Rf "$BOX" -e 'push <limit>!~=<enter>' +rm -f "$BOX" + diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/debian/changelog /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/debian/changelog --- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/debian/changelog 2005-10-05 18:51:32.000000000 +0200 +++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/debian/changelog 2005-10-07 02:18:17.000000000 +0200 @@ -1,3 +1,10 @@ +devscripts (2.9.9) unstable; urgency=low + + * bug: new script: fetch bug mbox from bugs.debian.org and display it in + mutt. + + -- Christoph Berg <[EMAIL PROTECTED]> Fri, 7 Oct 2005 02:17:41 +0200 + devscripts (2.9.8) unstable; urgency=low * dget: new script: downloads source packages from the web and provides a diff -Nru /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/debian/control /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/debian/control --- /srv/tmp/4vk7v2O9PM/devscripts-2.9.8/debian/control 2005-10-05 18:49:42.000000000 +0200 +++ /srv/tmp/9ZbgpK9Nj3/devscripts-2.9.9/debian/control 2005-10-07 02:21:03.000000000 +0200 @@ -11,7 +11,7 @@ Conflicts: debmake (<< 3.5), dupload (<< 2.1), suidmanager (<< 0.51) Depends: dpkg-dev, debianutils (>= 2.0), perl (>= 5.8), sed (>= 2.95), ${shlibs:Depends}, ${misc:Depends} Recommends: fakeroot -Suggests: devscripts-el, build-essential, cvs-buildpackage, cvs | subversion | tla | bazaar, debian-keyring, dupload (>=2.1) | dput, gnupg (>= 1.0.7), gnuplot, libdigest-md5-perl, libtimedate-perl, libwww-perl, lintian | linda, mailx, patch, patchutils, ssh, strace, wdiff, wget, www-browser +Suggests: devscripts-el, build-essential, cvs-buildpackage, cvs | subversion | tla | bazaar, debian-keyring, dupload (>=2.1) | dput, gnupg (>= 1.0.7), gnuplot, libdigest-md5-perl, libtimedate-perl, libwww-perl, lintian | linda, mailx, mutt, patch, patchutils, ssh, strace, wdiff, wget, www-browser Description: Scripts to make the life of a Debian Package maintainer easier Contains the following scripts, dependencies/recommendations shown in brackets afterwards: @@ -20,6 +20,8 @@ - archpath: print tla/Bazaar package names [tla | bazaar] - bts: a command-line tool for manipulating the BTS [www-browser, libwww-perl, mailx] + - bug: fetch bug mbox from bugs.debian.org and display it in mutt [wget, + mutt] - checkbashisms: check whether a /bin/sh script contains any common bash-specific contructs - cvs-debi, cvs-debc: to call debi and debc from the CVS working directory
signature.asc
Description: Digital signature