[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [BTS:530956] templates://ufw/{templates}



Quoting Jonathan Wiltshire (debian@jwiltshire.org.uk):
> On Fri, May 29, 2009 at 07:20:47AM +0200, Christian Perrier wrote:
> > In order for the tracking robot to properly follow work, you need to
> > use the same subject "style":
> 
> I didn't notice that it wasn't (the mail was generated by rewrite-bts :)


Hmmm, I should check whether the helper pack that's currently
available from the wiki page is the last version or if I made changes
since then..:-)

Just in case, attached is my current "rewrite-bts"

#!/bin/bash

controlfile=`tempfile`

common=`dirname $0`/rewrite-common
if [ -r "$common" ]; then
	. "$common"
else
	echo $common not found or unreadable
	exit 1
fi

if [ ! "$1" ]; then
	echo $0 bugnr
	exit 1
else
	bugnr="$1"
fi

test_package

template="${templ_dir}/$templ_bts"
status="${status_dir}/${pkg}.bts"
deadline="$deadline_bts"

get_inreplyto "${status_dir}/$pkg.lcfc"

create_messageid bts

create_sedfile

sed -f $sedfile $template > $mailfile

cat >$controlfile <<EOF
user ${usertag_user}
usertag $bugnr $usertag
thanks
EOF

cd debian

mutt -n -H $mailfile

mutt -i $controlfile -s "Usertagging the debconf rewrite bug report" \
	"control@bugs.debian.org"

#mutt $opts -s "[BTS:$bugnr] $pkg" "${robot_addr}"

dch --increment \
	--changelog changelog \
	--distribution UNRELEASED \
	--urgency low \
	"${bug_closure} Closes: #${bugnr}"

dch --changelog changelog \
	--distribution UNRELEASED \
	--urgency low \
	"[Debconf translation updates]"

clean
echo $bugnr >>"${status_dir}/${pkg}.bts"

echo "$messageid" >> "${status_dir}/$pkg.bts"

Attachment: signature.asc
Description: Digital signature


Reply to: