public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Pavel Machek <pavel@ucw.cz>, Sam Ravnborg <sam@ravnborg.org>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Randy Dunlap <randy.dunlap@oracle.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Script to integrate MAINTAINERS P: and M: lines
Date: Mon, 01 Jun 2009 10:45:31 -0700	[thread overview]
Message-ID: <1243878331.3402.52.camel@Joe-Laptop.home> (raw)
In-Reply-To: <20090527151510.fb773db6.akpm@linux-foundation.org>

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



  parent reply	other threads:[~2009-06-01 17:46 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-24  2:37 [PATCH 00/18] MAINTAINERS and scripts/get_maintainer.pl updates Joe Perches
2009-05-24  2:37 ` [PATCH 01/18] scripts/get_maintainer.pl - Output first field only in mailing lists and after maintainers Joe Perches
2009-05-24  2:37 ` [PATCH 02/18] scripts/get_maintainer.pl - Better fix for subscriber-only mailing lists Joe Perches
2009-05-24  2:37 ` [PATCH 03/18] scripts/get_maintainer.pl - improve --git-chief-penquins (Linus Torvalds) filtering Joe Perches
2009-05-24  2:37 ` [PATCH 04/18] scripts/get_maintainer.pl - Warn on missing git or git repository Joe Perches
2009-05-24  2:37 ` [PATCH 05/18] scripts/get_maintainer.pl - support M: lines with names and multiple entries per M: line Joe Perches
2009-05-24  2:37 ` [PATCH 06/18] scripts/get_maintainer.pl - Better email name quoting Joe Perches
2009-05-24  2:37 ` [PATCH 07/18] scripts/get_maintainer.pl - Support both "P:/M:" and integrated "M:" lines Joe Perches
     [not found]   ` <20090526144141.570594cf.akpm@linux-foundation.org>
     [not found]     ` <1243455722.27337.65.camel@Joe-Laptop.home>
     [not found]       ` <20090527151510.fb773db6.akpm@linux-foundation.org>
2009-06-01 17:45         ` Joe Perches [this message]
2009-06-02  9:12           ` Script to integrate MAINTAINERS P: and M: lines Pavel Machek
2009-06-05 21:47           ` Sam Ravnborg
2009-06-05 22:57             ` Joe Perches
2009-05-24  2:37 ` [PATCH 08/18] scripts/get_maintainer.pl - Don't print maintainers when not requested Joe Perches
2009-05-24  2:37 ` [PATCH 09/18] scripts/get_maintainer.pl - Allow 8 bit characters in email addresses Joe Perches
2009-05-24  2:37 ` [PATCH 10/18] scripts/get_maintainer.pl - change "die" to "warn" when command line file is not a patch Joe Perches
2009-05-24  2:37 ` [PATCH 11/18] MAINTAINERS - Swap mismarked ECRYPT FS M: and P: entries Joe Perches
2009-05-24  2:37 ` [PATCH 12/18] MAINTAINERS - Pair EDAC-E752X P: and M: entries Joe Perches
2009-05-24  2:37 ` [PATCH 13/18] MAINTAINERS - Add file patterns to "THE REST" Joe Perches
2009-05-24  2:37 ` [PATCH 14/18] MAINTAINERS - Update M32R file patterns after rename Joe Perches
2009-05-24  2:37 ` [PATCH 15/18] MAINTAINERS - Mark ALSA lists as moderated Joe Perches
2009-05-24  2:37 ` [PATCH 16/18] MAINTAINERS - Remove L: linux-kernel@vger.kernel.org from all but "THE REST" Joe Perches
2009-05-24  3:18   ` Grant Likely
2009-05-24  3:22     ` Joe Perches
2009-05-24  4:28       ` Grant Likely
2009-05-24  4:39         ` Joe Perches
2009-05-24  4:51           ` Grant Likely
2009-05-24  4:58             ` Joe Perches
2009-05-27  1:33             ` Paul Mundt
2009-05-27  5:38               ` Joe Perches
2009-05-27  5:50                 ` Paul Mundt
2009-05-27  6:00                   ` Andrew Morton
2009-05-27  6:02                     ` Paul Mundt
2009-05-27 16:12                     ` Joe Perches
2009-05-24 10:42         ` Mark Brown
2009-05-26 23:42   ` Paul E. McKenney
2009-05-27 18:18     ` [PATCH] MAINTAINERS: Add Paul McKenney to RCU and RCUTORTURE Joe Perches
2009-05-27 21:03       ` Paul E. McKenney
2009-05-24  2:37 ` [PATCH 17/18] MAINTAINERS - Mention scripts/get_maintainer.pl in the preface Joe Perches
2009-05-24  2:37 ` [PATCH 18/18] MAINTAINERS - Add file pattern to CISCO FCOE HBA DRIVER Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1243878331.3402.52.camel@Joe-Laptop.home \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=randy.dunlap@oracle.com \
    --cc=sam@ravnborg.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox