maintainers: update CODEOWNERS from MAINTAINERS file

Converted using the script below with a few manual edits:

from __future__ import print_function, unicode_literals, with_statement
from glob import glob

import email.utils

seen = set()
emails = set()

with open('MAINTAINERS', 'rb') as f:
    new = False
    for line in f:
        line = line.decode('utf-8')
        if line.startswith('M:'):
            if new:
                emails = set()
                new = False
                print("")
            pattern = line.partition(':')[2].strip()
            emails.add(email.utils.parseaddr(pattern)[1])
        elif line.startswith('F:'):
            new = True
            pattern = line.partition(':')[2].strip()
            if pattern.endswith("/"):
                pattern = pattern + "*"
            print("%s %s" %(pattern, " ".join(emails)))
            seen.add(pattern)

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 file changed