From patchwork Mon Oct 24 18:05:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 9392837 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3342F6086B for ; Mon, 24 Oct 2016 18:05:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E0C928A07 for ; Mon, 24 Oct 2016 18:05:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22B612909C; Mon, 24 Oct 2016 18:05:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DEF4128A07 for ; Mon, 24 Oct 2016 18:05:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 16E326E58F; Mon, 24 Oct 2016 18:05:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtprelay.hostedemail.com (smtprelay0134.hostedemail.com [216.40.44.134]) by gabe.freedesktop.org (Postfix) with ESMTPS id 136186E58A; Mon, 24 Oct 2016 18:05:28 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 772576AD46; Mon, 24 Oct 2016 18:05:26 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: crowd81_2f419c8b36a2a X-Filterd-Recvd-Size: 3106 Received: from XPS-9350 (unknown [47.151.132.55]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Mon, 24 Oct 2016 18:05:24 +0000 (UTC) Message-ID: <1477332323.1984.8.camel@perches.com> Subject: [RFC PATCH] get_maintainer: Look for arbitrary letter prefixes in sections From: Joe Perches To: Jani Nikula , linux-kernel Date: Mon, 24 Oct 2016 11:05:23 -0700 In-Reply-To: <1476966135-26943-1-git-send-email-jani.nikula@intel.com> References: <1476966135-26943-1-git-send-email-jani.nikula@intel.com> X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Cc: akpm@linux-foundation.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Jani Nikula proposes patches to add a few new letter prefixes for "B:" bug reporting and "C:" maintainer chatting to the various sections of MAINTAINERS. Add a generic mechanism to get_maintainer.pl to find sections that have any combination of "[A-Z]" letter prefix types in a section. Signed-off-by: Joe Perches ---  scripts/get_maintainer.pl | 12 +++++++++---  1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index aed4511f0304..633f2dd3de27 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -49,6 +49,7 @@ my $scm = 0;  my $web = 0;  my $subsystem = 0;  my $status = 0; +my $letters = "";  my $keywords = 1;  my $sections = 0;  my $file_emails = 0; @@ -241,6 +242,7 @@ if (!GetOptions(   'status!' => \$status,   'scm!' => \$scm,   'web!' => \$web, + 'letters=s' => \$letters,   'pattern-depth=i' => \$pattern_depth,   'k|keywords!' => \$keywords,   'sections!' => \$sections, @@ -271,7 +273,8 @@ $output_multiline = 0 if ($output_separator ne ", ");  $output_rolestats = 1 if ($interactive);  $output_roles = 1 if ($output_rolestats);   -if ($sections) { +if ($sections || $letters ne "") { +    $sections = 1;      $email = 0;      $email_list = 0;      $scm = 0; @@ -682,8 +685,10 @@ sub get_maintainers {   $line =~ s/\\\./\./g;        ##Convert \. to .   $line =~ s/\.\*/\*/g;        ##Convert .* to *       } -     $line =~ s/^([A-Z]):/$1:\t/g; -     print("$line\n"); +     my $count = $line =~ s/^([A-Z]):/$1:\t/g; +     if ($letters eq "" || (!$count || $letters =~ /$1/i)) { + print("$line\n"); +     }   }   print("\n");       } @@ -814,6 +819,7 @@ Other options:    --pattern-depth => Number of pattern directory traversals (default: 0 (all))    --keywords => scan patch for keywords (default: $keywords)    --sections => print all of the subsystem sections with pattern matches +  --letters => print all matching 'letter' types from all matching sections    --mailmap => use .mailmap file (default: $email_use_mailmap)    --version => show version    --help => show this help information