Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1247487imm; Wed, 15 Aug 2018 14:08:54 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzYNXO0gkjSFffaYryBB6W6uGwqkep/JrJONqJWOFR2oRNMrxi6vIe1ytafiXl6gWuMH8hX X-Received: by 2002:a65:6455:: with SMTP id s21-v6mr25532954pgv.394.1534367334431; Wed, 15 Aug 2018 14:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534367334; cv=none; d=google.com; s=arc-20160816; b=xI/f+evEfh98WTX5Aqon/Qrgalm392YD9/gjD+A3vF45HiR4Fts6PfpZGNKsqt/7BK 6PKuWjho6BAYVbjdZ8H3T//AS1L840KLoQq9xTdyG8lTwQg9NBG7L2SuZ2gdzVsS1pTV uqmdMrXiWA8CYRtSbx8a2JN36o0UPELYLK/V2ZFV7G7nyVBAu4GEUjtCXGRcrmbFPm2u cY1HgbR/sQyBeeu0/q5UMqKP0cl5vH5MEBFMrljejimyf6TEvr6ECPqN/8aRFhnPaeYr GB7SOxsYB3oI/d0nMs3veLvHfMI1Snr00bHT/t1WBNgue8L6vygd4bFPJOgGRTxMIX7j y/+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ZUyLLDHXOQQH8Yq7WtHS6kMW6wbXeBXvpclq6lcQq54=; b=AcRFxwZWoqPZ2G95RxW+Og7iEQnpLaun6ZVZsuzBo+AtdiM8y03zjUERZaML/tkO1a VBG7AHwP8j/JSSW2VGN9DfqQXm1ppKOjtGaldTV57UxzEiNvPXfgfB9Rwj2MnPwmGTWC q3r8Zd3Ofbt4L1H2lqLalsoAzscLStwhhKFE3ENkFfrASXhy+ViACrb59Pazm8VQtcxy x0YlyGhHCs/mtv+EjakmZm8vHKPQzlzzW1PLxtlg6MDo8AB9ULZOUm8ygjJy5kJZlzw8 1yZoQTM6Isf0YSSQArmue9lbH6TC9tO221np7RnunDOXyN4x+cCRNIUL7uO+V/diNmUM Nbeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1-v6si19897748plb.387.2018.08.15.14.08.39; Wed, 15 Aug 2018 14:08:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727537AbeHPABI (ORCPT + 99 others); Wed, 15 Aug 2018 20:01:08 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37024 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726296AbeHPABH (ORCPT ); Wed, 15 Aug 2018 20:01:07 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 90601401EF05; Wed, 15 Aug 2018 21:07:16 +0000 (UTC) Received: from redhat.com (dhcp-17-127.bos.redhat.com [10.18.17.127]) by smtp.corp.redhat.com (Postfix) with SMTP id 48ED92156712; Wed, 15 Aug 2018 21:07:16 +0000 (UTC) Date: Wed, 15 Aug 2018 17:07:16 -0400 From: Don Zickus To: Joe Perches Cc: Andrew Morton , LKML Subject: Re: [PATCH] get_maintainer: Allow option --mpath to read all files in Message-ID: <20180815210716.26wfdxtt3c5uup3q@redhat.com> References: <991b2f20112d53863cd79e61d908f1d26d3e1971.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <991b2f20112d53863cd79e61d908f1d26d3e1971.camel@perches.com> User-Agent: NeoMutt/20180622 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 15 Aug 2018 21:07:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 15 Aug 2018 21:07:16 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dzickus@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 13, 2018 at 06:12:44PM -0700, Joe Perches wrote: > There is an external use case for multiple private MAINTAINER > style files in a separate directory. Allow it. > > --mpath has a default of "./MAINTAINERS". > > The value entered can be either a file or a directory. > > The behaviors are now: > > --mpath Read only the specific file as file > --mpath Read all files in as files > --mpath --find-maintainer-files > Recurse through and read all files named MAINTAINERS Tested-by: Don Zickus > > Signed-off-by: Joe Perches > --- > scripts/get_maintainer.pl | 13 ++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > index 0ebdefe74d5b..c1c088ef1420 100755 > --- a/scripts/get_maintainer.pl > +++ b/scripts/get_maintainer.pl > @@ -396,7 +396,12 @@ sub read_all_maintainer_files { > > if (-d $path) { > $path .= '/' if ($path !~ m@/$@); > - if ($path eq "${lk_path}MAINTAINERS/") { > + if ($find_maintainer_files) { > + find( { wanted => \&find_is_maintainer_file, > + preprocess => \&find_ignore_git, > + no_chdir => 1, > + }, "$path"); > + } else { > opendir(DIR, "$path") or die $!; > my @files = readdir(DIR); > closedir(DIR); > @@ -404,12 +409,6 @@ sub read_all_maintainer_files { > push(@mfiles, "$path$file") if ($file !~ /^\./); > } > } > - if ($find_maintainer_files) { > - find( { wanted => \&find_is_maintainer_file, > - preprocess => \&find_ignore_git, > - no_chdir => 1, > - }, "$path"); > - } > } elsif (-f "$path") { > push(@mfiles, "$path"); > } else { >