Re: [PATCH 0/10] MAINTAINERS - add script, patterns and miscupdates

From: Pavel Machek
Date: Wed Apr 22 2009 - 16:27:19 EST


On Wed 2009-04-22 12:56:25, Joe Perches wrote:
> On Wed, 2009-04-22 at 12:05 -0700, Andrew Morton wrote:
> > > It is irritating to manually copy name+email as it looks today.
> > > I always have to do that for the Cc: lines.
> > me2
>
> This seems to do a decent job of conversion:
> I have this in my tree. I'll submit it later.
>
> perl -i -e 'local $/; while(<>) { s@P: ([^\n]+)\nM: ([^\n]+)\n@M: \1 <\2>\n@g; print; }' MAINTAINERS

It did not work for here, and I don't understand perl well enough. If
possible, it would be nice to aggregate multiple entries onto one
line. I.e.:

P: Len Brown
M: len.brown@xxxxxxxxx
P: Pavel Machek
M: pavel@xxxxxx
P: Rafael J. Wysocki
M: rjw@xxxxxxx
L: linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
S: Supported

->

P: Len Brown <len.brown@xxxxxxxxx>, Pavel Machek <pavel@xxxxxx>, Rafael J. Wysocki <rjw@xxxxxxx>
L: linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
S: Supported

...
Thanks for your work!
Pavel


--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/