From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764068AbcINOcQ (ORCPT ); Wed, 14 Sep 2016 10:32:16 -0400 Received: from smtprelay0058.hostedemail.com ([216.40.44.58]:59565 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1763970AbcINOcM (ORCPT ); Wed, 14 Sep 2016 10:32:12 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::,RULES_HIT:41:355:379:541:599:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1381:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2197:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3653:3865:3866:3867:3868:3870:3874:4321:4384:5007:6119:10004:10400:10471:10848:11232:11658:11914:12043:12109:12114:12740:13069:13161:13229:13255:13311:13357:13439:13894:14181:14659:14721:21080:21221:30003:30054:30060:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:4,LUA_SUMMARY:none X-HE-Tag: songs25_4d243ccaf692d X-Filterd-Recvd-Size: 1978 Message-ID: <1473863528.32273.30.camel@perches.com> Subject: Re: get_maintainer.pl and git send-email: 5.1.2 The recipient address is not a valid From: Joe Perches To: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , Linux Kernel Mailing List Date: Wed, 14 Sep 2016 07:32:08 -0700 In-Reply-To: <1473862411.32273.25.camel@perches.com> References: <1473862411.32273.25.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.21.91-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2016-09-14 at 07:13 -0700, Joe Perches wrote: > The scripts use --to-cmd to address the direct maintainers > and cc-cmd to address indirect maintainers and mailing lists. I neglected to mention I use a separate directory for each patch series so there are no other files in the directory that could be scanned with the wildcard use of '$(dirname $1)/*' $ git format-patch -o ... > $ cat ~/bin/to.sh > #!/bin/bash > > opts="--nogit --nogit-fallback --norolestats --pattern-depth=1" > > if [[ $(basename $1) =~ ^0000- ]] ; then >   ./scripts/get_maintainer.pl --nom $opts $(dirname $1)/* > else >   maint=$(./scripts/get_maintainer.pl --nol $opts $1) >   if [ "$maint" == "" ] ; then > > echo "linux-kernel@vger.kernel.org" >   else > echo "$maint" >   fi > fi > > $ cat ~/bin/cc.sh > #!/bin/bash > > opts="--nogit --nogit-fallback --norolestats" > > if [[ $(basename $1) =~ ^0000- ]] ; then >   ./scripts/get_maintainer.pl --nom $opts $(dirname $1)/* > else >   ./scripts/get_maintainer.pl $opts $1 > fi >