Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2137708imm; Thu, 14 Jun 2018 09:17:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKeQ0NoItM0hd1fFtEhqCWGGhKdP8jow5QG7Z/nDhWmfWjr0yDipTzr+xHxr4oV2N3BjlkW X-Received: by 2002:a62:2044:: with SMTP id g65-v6mr10175167pfg.40.1528993050538; Thu, 14 Jun 2018 09:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528993050; cv=none; d=google.com; s=arc-20160816; b=XNhx14BNouI1fpG1Ww/j6nH0up5aOy9NFpp4WG4ItzB2AMqIr0jtO0mZEOZZhjkxbp 9Fplu6eRNT+eQq2Mj0mzx7oelq/OKQibcOweUvJIOxe9a52cYs1vV3UYtBxzq3cSKghY q1Ffd6Ut/UBNhFOF1vA1xmH4Y64bB/F6ObSkRvYkC1srRfgIk5oTcSsTPLGwhJIyxavn gIhwHLeH/YBgo/n5fdKlQI4p2B+Tt5FKs261rtxe395QWlCsb03WSQjoOehecjRS/0iB vlepeMrYEnqeX+ClY2HAW6JJphjP5aR1wFXAsaJXlUFQ0CqxzR1ABzfGkkUVp/1SoDPo 0lfA== 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=IrTx1VoR6DW3jMqQVVi15iuc8Fmv3B08Px31ZjjCuiTvleKLN2pxFySXfCGMmCK5Si z8z187iQ86nEeFu2sCBVIJPYHP1lznOQqc2mEoCjNGWt+DxmA9FdUG46uevPDnasnEoU Osd1nIyTx8T9L/ocaz2bl8f0Jxz6dUUlS2uQQsGSzXS1Rq6Zl56lVaqkmQg/WyGfUV9D kcVpBM2XJEvFupPmc6V0Z5wRUE75w2wX5p3PgGHH10GZplrk3SV4LU4LKtjO2JTX5AJP nuYCNS9/1YmqJfr8hDjJp5arx5i/P0HQUhX8mXpaVMOzMZEay3k/TQ1Vste1FDarH4Tl QpSQ== 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 o3-v6si5698801pld.50.2018.06.14.09.17.16; Thu, 14 Jun 2018 09:17:30 -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 S936117AbeFNQP6 (ORCPT + 99 others); Thu, 14 Jun 2018 12:15:58 -0400 Received: from osg.samsung.com ([64.30.133.232]:33948 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755238AbeFNQJY (ORCPT ); Thu, 14 Jun 2018 12:09:24 -0400 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 559AA20EFC; Thu, 14 Jun 2018 09:09:24 -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 QSbMRtI5xFDa; Thu, 14 Jun 2018 09:09:19 -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 881E320EA3; Thu, 14 Jun 2018 09:09:16 -0700 (PDT) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.91) (envelope-from ) id 1fTUoE-0005T6-6a; Thu, 14 Jun 2018 13:09:14 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH v3 13/27] scripts/documentation-file-ref-check: hint: dash or underline Date: Thu, 14 Jun 2018 13:08:58 -0300 Message-Id: <0480c4350eec1283a0ce14bbe5f98cf7a1b6d68a.1528990947.git.mchehab+samsung@kernel.org> 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