From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932929AbdGTDNC (ORCPT ); Wed, 19 Jul 2017 23:13:02 -0400 Received: from smtprelay0222.hostedemail.com ([216.40.44.222]:46405 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932107AbdGTDNB (ORCPT ); Wed, 19 Jul 2017 23:13:01 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:560:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2540:2559:2562:2828:2898:3138:3139:3140:3141:3142:3353:3622:3653:3654:3865:3866:3867:3868:3870:3872:3874:4250:4321:5007:6119:7809:10004:10400:10482:10848:11232:11658:11783:11914:12043:12295:12296:12438:12555:12740:12895:12986:13069:13311:13357:13439:13894:14181:14659:14721:19901:19997:21080:21627:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: news90_374ced0f3bd14 X-Filterd-Recvd-Size: 2552 Message-ID: <1500520378.25934.49.camel@perches.com> Subject: Re: [PATCH RESEND v4] MAINTAINERS: fix lots of alphabetic ordering From: Joe Perches To: Linus Torvalds , Andrew Morton Cc: Randy Dunlap , LKML Date: Wed, 19 Jul 2017 20:12:58 -0700 In-Reply-To: <1500512701.25934.47.camel@perches.com> References: <20170719144457.8b1b6556fc7883ac7bc2b2b0@linux-foundation.org> <1500512701.25934.47.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-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, 2017-07-19 at 18:05 -0700, Joe Perches wrote: > On Wed, 2017-07-19 at 17:08 -0700, Linus Torvalds wrote: > > (b) we could split this thing up some sane way. > > > > Anybody got any ideas? [] > Just for ease of manipulation and not breaking the script much, > I'd suggest just having a MAINTAINERS directory and stuffing > each of the sections into separate files. > > The script would only need to add $ cat MAINTAINERS/* as input. Maybe something like the script below to break up the MAINTAINERS file into separate files. It also uses underscores for spaces in the section header -> filename translation. This seems to work OK except for this single section which doesn't follow the normal single line section header style. EDAC-XGENE APPLIED MICRO (APM) X-GENE SOC EDAC M:     Loc Ho S:     Supported F:     drivers/edac/xgene_edac.c F:     Documentation/devicetree/bindings/edac/apm-xgene-edac.txt That one would need manual fixup. --- $ cat separate_MAINTAINERS.bash mkdir MAINTAINERS.tmp sed -n '3,122p' MAINTAINERS > MAINTAINERS.tmp/00-README sed -n '131,500000p' MAINTAINERS | while read line; do     if [[ ! "$line" =~ ^[A-Z0-9a-z][A-Z0-9a-z\.\-] ]]; then echo "bad line: $line" continue     fi     file=MAINTAINERS.tmp/$(echo -n $line |        sed -r -e 's/\s+/_/g' -e 's@/@-@g' -e 's/_-_/-/' -e 's/:*$//')     echo "$line" > $file     while read line; do if [[ ! $line =~ ^[A-Z]: ]]; then     break fi echo "$line" >> $file     done done $