public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC] [PATCH 0/5] Refactor MAINTAINERS file
@ 2013-07-23 20:28 Albert ARIBAUD
  2013-07-23 20:28 ` [U-Boot] [RFC] [PATCH 1/5] MAINTAINERS: move ARM entries into ARM section Albert ARIBAUD
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Albert ARIBAUD @ 2013-07-23 20:28 UTC (permalink / raw)
  To: u-boot

This patch series aims at refactoring MAINTAINERS into an easily
processable file.

There are not actually five changes as such; the first four patches
are step-by-step cleaning so that the last patch can be created
essentially by running an AWK script on MAINTAINERS.

The non-RFC submission will only contain the final MAINTAINERS file
(unless of course reviewers prefer this five-patch form).

The AWK script is not included as a file. It is provided here for
convenience and functional review. Yes, it is ugly.

-------------------- 8< ------------------
BEGIN	{
		printf "%s %s %s %s\n", "System", "Board", "Status", "Maintainer";
		BOARD_MET=0;
}

# Ignore decorative lines

# System lines.

/^# .* Systems:.*$/	{ SYSTEM=$2; STATUS="Active"; SL++; }

# System lines.

/^.*Unknown.*$/		{ STATUS="Orphan"; MAINTS=1; MAINT[0]=""; OL++; next; }

/^.*Orphan.*$/		{ STATUS="Orphan"; MAINTS=1; MAINT[0]=""; OL++; next; }

# Maintainer lines

/^[^ \t#-].*$/	{
			if (BOARD_MET != 0) MAINTS=0;
			BOARD_MET=0;
			MAINT[MAINTS++]=$0;
			ML++;
}

# Board lines

/^[ \t]+.*$/	{
			BOARD_MET=1;
			BL++;
			BOARD=$1;
			for (m =0; m<MAINTS; m++) {
				printf "%s %s %s %s\n", SYSTEM, BOARD, STATUS, MAINT[m];
			}
}
-------------------- 8< ------------------

Albert ARIBAUD (5):
  MAINTAINERS: move ARM entries into ARM section
  MAINTAINERS: move improperly placed e-mail addresses
  MAINTAINERS: remove misplaced comments.
  MAINTAINERS: remove useless 'header' lines
  MAINTAINERS: refactor file for easier processing

 MAINTAINERS | 2010 +++++++++++++++++++----------------------------------------
 1 file changed, 633 insertions(+), 1377 deletions(-)

-- 
1.8.1.2

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-08-05 14:28 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-23 20:28 [U-Boot] [RFC] [PATCH 0/5] Refactor MAINTAINERS file Albert ARIBAUD
2013-07-23 20:28 ` [U-Boot] [RFC] [PATCH 1/5] MAINTAINERS: move ARM entries into ARM section Albert ARIBAUD
2013-07-23 20:28   ` [U-Boot] [RFC] [PATCH 2/5] MAINTAINERS: move improperly placed e-mail addresses Albert ARIBAUD
2013-07-23 20:28     ` [U-Boot] [RFC] [PATCH 3/5] MAINTAINERS: remove misplaced comments Albert ARIBAUD
2013-07-23 20:29       ` [U-Boot] [RFC] [PATCH 4/5] MAINTAINERS: remove useless 'header' lines Albert ARIBAUD
2013-07-23 20:29         ` [U-Boot] [RFC] [PATCH 5/5] MAINTAINERS: refactor file for easier processing Albert ARIBAUD
2013-07-23 20:51           ` Otavio Salvador
2013-07-24  5:57             ` Albert ARIBAUD
2013-07-24  4:34 ` [U-Boot] [RFC] [PATCH 0/5] Refactor MAINTAINERS file Wolfgang Denk
2013-07-25 10:11   ` Albert ARIBAUD
2013-07-26 21:37 ` [U-Boot] [RFC V2 0/9] " Albert ARIBAUD
2013-07-26 21:37   ` [U-Boot] [RFC V2 1/9] MAINTAINERS: move ARM entries into ARM section Albert ARIBAUD
2013-07-26 21:37     ` [U-Boot] [RFC V2 2/9] MAINTAINERS: move improperly placed e-mail addresses Albert ARIBAUD
2013-07-26 21:37       ` [U-Boot] [RFC V2 3/9] MAINTAINERS: remove misplaced comments Albert ARIBAUD
2013-07-26 21:37         ` [U-Boot] [RFC V2 4/9] MAINTAINERS: remove useless 'header' lines Albert ARIBAUD
2013-07-26 21:37           ` [U-Boot] [RFC V2 5/9] MAINTAINERS: refactor file for easier processing Albert ARIBAUD
2013-07-26 21:37             ` [U-Boot] [RFC V2 6/9] tools: add reformat.py and (temporary merge.py) Albert ARIBAUD
2013-07-26 21:37               ` [U-Boot] [RFC V2 7/9] reformat MAINTAINERS and boards.cfg Albert ARIBAUD
2013-07-26 21:37                 ` [U-Boot] [RFC V2 8/9] boards.cfg: merge MAINTAINERS and reformat Albert ARIBAUD
2013-07-26 21:37                   ` [U-Boot] [RFC V2 9/9] Changes due to boards.cfg reformat Albert ARIBAUD
2013-08-03 14:24   ` [U-Boot] [RFC V2 0/9] Refactor MAINTAINERS file Albert ARIBAUD
2013-08-05 14:28     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox