On 02/06/2016 10:35 AM, Andrew Savchenko wrote:
> Automation can go further: if there are multiple maintainers,
> assign bug to the first one and CC others.
Which is exactly what I'm doing in my tinderbox:
# get assignee and cc, GLEP 67 simplifies it
#
m=$(equery --no-color meta -m $curr 2>/dev/null | grep '@' | xargs)
if [[ -z "$m" ]]; then
m="[email protected]"
fi
echo "$m" | cut -f1 -d ' ' > $issuedir/assignee
echo "$m" | grep -q ' '
if [[ $? -eq 0 ]]; then
echo "$m" | cut -f2- -d ' ' | tr ' ' ',' > $issuedir/cc
else
echo "" > $issuedir/cc
fi
:-D
--
Toralf
PGP: C4EACDDE 0076E94E, OTR: 420E74C8 30246EE7