Messages in this thread Patch in this message | | | Subject | Script to integrate MAINTAINERS P: and M: lines | From | Joe Perches <> | Date | Mon, 01 Jun 2009 10:45:31 -0700 |
| |
Here's a script to convert the MAINTAINERS file to a single-line format.
from: P: name M: address to M: name <address>
Please run the script and apply the result when convenient.
--- /dev/null 2009-05-30 11:29:04.000000000 -0700 +++ integrate_maintainers.sh 2009-06-01 10:27:06.000000000 -0700 @@ -0,0 +1,39 @@ +#! /bin/sh +# +# Change MAINTAINERS from +# P: name +# M: address +# to: +# M: name <address> +# +# Integrate P: and M: lines +# +perl -i -e 'local $/; while(<>) { s@P: ([^\n]+)\nM: ([^\n]+)\n@M: \1 <\2>\n@g; print; }' MAINTAINERS +# +# Quote names with periods, commas and parentheses +# +sed -r -i -e "s/^M: (.+)([\.,'\(])(.*) </M: \"\1\2\3\" </g" MAINTAINERS +# +# Fix CIRRUS LOGIC CS4280/CS461x SOUNDDRIVER section names +# +sed -r -i -e 's/"Nils Faerber \(port to kernel 2.4\) <Nils Faerber\" <nils@kernelconcepts.de>>/"Nils Faerber \(port to kernel 2.4\)" <nils@kernelconcepts.de>/g' MAINTAINERS +sed -r -i -e 's/"Cirrus Logic Corporation \(kernel 2.2 driver\) <Cirrus Logic Corporation, Thomas Woller" <twoller@crystal.cirrus.com>>/"Cirrus Logic Corporation \(kernel 2.2 driver\), Thomas Woller" <twoller@crystal.cirrus.com>/g' MAINTAINERS +# +# Add a description of email name style +# +patch -p1 <<EOF +diff --git a/MAINTAINERS b/MAINTAINERS +--- a/MAINTAINERS ++++ b/MAINTAINERS +@@ -67,8 +67,8 @@ Note: For the hard of thinking, this list is meant to remain in alphabetical + order. If you could add yourselves to it in alphabetical order that would be + so much easier [Ed] + +-P: Person +-M: Mail patches to ++P: Person (obsolete) ++M: Mail patches to: FullName <address@domain> + L: Mailing list that is relevant to this area + W: Web-page with status/info + T: SCM tree type and location. Type is one of: git, hg, quilt. +EOF
| |