Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1006388imm; Fri, 15 Jun 2018 09:38:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJvN01LR/9F+JFzo4MaluPCZP/3z8Z26HDbsqncoGQw6i+t3O4EWW/G64Sa0nI6tf2Mn8cp X-Received: by 2002:a63:81c7:: with SMTP id t190-v6mr2264568pgd.378.1529080716663; Fri, 15 Jun 2018 09:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529080716; cv=none; d=google.com; s=arc-20160816; b=Oskyeq5fTmf1qz3qeTPeeqTgiWNbcWgPdTMegBqzjzhGTpalJjltPIenftzpeMgrmu 4tr3g2m/w5jMmmy/6bkVfZDI090cVAuN1biD/ll19DefwZR3xMZwD+nzh/R2VYgn4vlG Q0voot2nsHRji14TV50zt3cxc2eVGfbeLw7GzmLW1qqX7bXFlGFPeC1pSDqw6hRceL9n ES9QzsCPgu+Hzv/nndvmK1TrT7Lx2PpTbHvaM4k5TrkSX13PVfSPJ8H+ww2HROf+DQZI fRXvYU2ZBHuDI0xaDsOwggMorO7dNVyEEIxI9QjppFputcYyNz/4N/K3DyMlfF0P9HJ3 IW3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=avX5YTwMTigAKZanc5oHGRTvVVA1/DJcYaLtvSy4Dag=; b=WF7M+DozlPhQ/939PfV5y9tmY0IOF175TqMh+6f05YwL3/KOwCXA6rQI5/pMqHaDbw 9moZ84jahGb5emMCut0InTsbfycGx2kdRnHXIUyBXkjg28Gl08CPuHWcbAJdvjCS8voF JI4rtNExOw3EYg+7LoiDqZplQzpN4BGgRe+vnZYZhjM7K9yHzEs7z33Nd8XG9oFhhXpH J2fhpbErErfDX580KGTrOMnYrbxjBJv8QCINNXstlhUgIz32SI2m94VipojND2kIADfz Ol+nYvLppUseF2tuKdNHlx9WYN2JkU+04QkeEBdcMlRfany2/11TpU63L4jq0ztEnFrq ErhQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6-v6si8234583pfj.338.2018.06.15.09.38.22; Fri, 15 Jun 2018 09:38:36 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966157AbeFOQgj (ORCPT + 99 others); Fri, 15 Jun 2018 12:36:39 -0400 Received: from osg.samsung.com ([64.30.133.232]:63439 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966097AbeFOQbH (ORCPT ); Fri, 15 Jun 2018 12:31:07 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 925C222BD3; Fri, 15 Jun 2018 09:31:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JWQ8Nhi9Amks; Fri, 15 Jun 2018 09:31:06 -0700 (PDT) Received: from smtp.s-opensource.com (177.41.114.220.dynamic.adsl.gvt.net.br [177.41.114.220]) by osg.samsung.com (Postfix) with ESMTPSA id A715822B4F; Fri, 15 Jun 2018 09:30:58 -0700 (PDT) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.91) (envelope-from ) id 1fTrcm-00083x-BT; Fri, 15 Jun 2018 13:30:56 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: [PATCH v4 13/26] scripts/documentation-file-ref-check: hint: dash or underline Date: Fri, 15 Jun 2018 13:30:41 -0300 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sometimes, people use dash instead of underline or vice-versa. Try to autocorrect it. Signed-off-by: Mauro Carvalho Chehab --- scripts/documentation-file-ref-check | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index c8bc1c1c1d6e..d132f756d31d 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check @@ -104,6 +104,12 @@ foreach my $ref (keys %broken_ref) { $f=qx(find . -iname $new) if ($new); } + # usual reason for breakage: use dash or underline + if (!$f) { + $new =~ s/[-_]/[-_]/g; + $f=qx(find . -iname $new) if ($new); + } + # Wild guess: seek for the same name on another place if (!$f) { $f = qx(find . -iname $new) if ($new); -- 2.17.1