Bug#516764: Automatic generation of list of Uploaders in control files
Stefano Zacchiroli wrote:
> On Mon, Feb 23, 2009 at 05:15:02PM +0100, Stefano Zacchiroli wrote:
>> My proposal is to do as the Gnome people do, namely: you consider
>> the current debian/changelog, you took the list of last n different
>> contributors listed in it, and you generate Uploaders from it.
>
> Just to clarify (thanks to Samuel for pointing out that it wasn't
> clear): the last n different contributors are computed also taking
> into account entries in bracket like "[ Stefano Zacchiroli ]", not
> only the name appearing in the last changelog line of each entry.
>
Something like that?
MAX_UPLOADS = 5
RECENT_UPLOADERS ?= awk -F' *[[] *| *[]] *| -- | <.*' \
'{if (c < $(MAX_UPLOADS) && $$2) {print $$2} else {}};/^ -- /{c++}' \
debian/changelog \
| sort -u \
| sed '$$,$$! s/$$/,/'
--
Mehdi Dogguy مهدي الدقي
http://www.pps.jussieu.fr/~dogguy
Tel.: (+33).1.44.27.28.38
Reply to: