
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(-)