Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7042554ybi; Thu, 13 Jun 2019 08:36:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiHpV8F1lMDsNVcEYyqAEj5xL35/NeV0s5NjjpJBp0y3BniKo6RxVNkecJwYSz1LUnO6Pq X-Received: by 2002:a17:90a:2561:: with SMTP id j88mr6263716pje.121.1560440186132; Thu, 13 Jun 2019 08:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440186; cv=none; d=google.com; s=arc-20160816; b=hGuXa1E394uzeaso5FUkrbJHVge3wMDkvaOTdc6qgCdNq5d7/GnmYp4kW3q77dmxU8 DQktppvrL98IxQu/4KLfB5D76DRWOTRMLVwtYp8NaiHcnqAkvTHy2frjzwvDQl0/0LLY jMHkEUYPU4ltNntGXXhd5C/1+JHkDIpq7kasB6o/4NXmjWYWwpKmacZfO8ulMgNq+JWd p0BDSo+jlaY1/BnWvJTv0dr7pcPl6RL7vHGBfSZyHAa3hqu4WQq/Y3R8uQmvdBKz0GiC ucyGwvo00Hz5xxG17hfrKsyYSEPfEXI/OwGQfGpVZghIR0qxYU4Tk/zU7UO/HQuZSsyi GntQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=l6eX/LOpY2lKbloYe4ibvvvCroTQzEKMG7QHU9kz2r0=; b=QrfoYW0NUawWP4MLogwqJLg9fGFOB3dQ9OzOy4sWEdJbrQdzWPm5Oa5xZt/vjmgljC ClX0WcUTcnijkvL+eUfsxzi3wJQQ1NyV/3qYTZbCHcJOE70Vqeov4p0/AoQPImn4iQlf x8Frds0dKCTTGpJ2p4m1i4o0EC/WS0FcpNK9irQBKkx1rKljzYjLBlGfb+r+/YvwXimi A2LNt5fIcXI6kTutShlPm84+W/HrqE5r7SOWuLkfr2DDUyptrRwzbn/JtBCqu1SA8vhc +v0HLr2IfLZ3DGZhX8vhcmWw8reE/d8fUwu8GRWHm3XpKeT4BlxQdEZajPMae5Gpnn6y r/uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Knqjy4+N; 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 k5si3338300plt.355.2019.06.13.08.36.11; Thu, 13 Jun 2019 08:36:26 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Knqjy4+N; 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 S1732115AbfFMPfP (ORCPT + 99 others); Thu, 13 Jun 2019 11:35:15 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36372 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727884AbfFMK3Y (ORCPT ); Thu, 13 Jun 2019 06:29:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=l6eX/LOpY2lKbloYe4ibvvvCroTQzEKMG7QHU9kz2r0=; b=Knqjy4+Nqo87caXZLzc3vAHdL t3AV50Ce06k9sbtYT+1Hy7lHc7R9B8WlT71KU0CrbbPEdmAhPvyvNfgRpCVNgmXC1dWh63eaRWeuW nz5MVAowbfTtwkqOvyq2Z+0QV0IWMmpChU/Pb+hlT1xLZ8BHVurZu/OZD2kw4dbDm8oM68SkQ29Om yfrdbQwmM1c1Ll6e5X/J2rj3xkSe3GGRW86oqoZV6fbXUPtyOoKAgo8V+qIyJHP3714JHNRjsKgHS jpFjLQz2iLy2j75wlPMKiYtWwz8HFklYqMk2lb8ytcTjqVhTgtbMw2N1pJ1Db/TZdoQ23N8JXre3q 1REHKG7mw==; Received: from 201.86.169.251.dynamic.adsl.gvt.net.br ([201.86.169.251] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hbMyx-0007Z4-Hz; Thu, 13 Jun 2019 10:29:23 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hbMyv-0005vt-KN; Thu, 13 Jun 2019 07:29:21 -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] scripts/documentation-file-ref-check: ignore output dir Date: Thu, 13 Jun 2019 07:29:17 -0300 Message-Id: <093d01459be472a20894c5be6f9b937ff7fd7d47.1560421751.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When there's no Documentation/output directory, the script will complain about those missing references: Documentation/doc-guide/sphinx.rst: Documentation/output Documentation/doc-guide/sphinx.rst: Documentation/output Documentation/process/howto.rst: Documentation/output Documentation/translations/it_IT/doc-guide/sphinx.rst: Documentation/output Documentation/translations/it_IT/doc-guide/sphinx.rst: Documentation/output Documentation/translations/it_IT/process/howto.rst: Documentation/output Documentation/translations/ja_JP/howto.rst: Documentation/output Documentation/translations/ko_KR/howto.rst: Documentation/output Those are false positives, so add an ignore rule for them. Signed-off-by: Mauro Carvalho Chehab --- scripts/documentation-file-ref-check | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index a4139a576726..7784c54aa38b 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check @@ -90,6 +90,9 @@ while () { # Skip this script next if ($f eq $scriptname); + # Ignore the dir where documentation will be built + next if ($ln =~ m,\b(\S*)Documentation/output,); + if ($ln =~ m,\b(\S*)(Documentation/[A-Za-z0-9\_\.\,\~/\*\[\]\?+-]*)(.*),) { my $prefix = $1; my $ref = $2; -- 2.21.0