diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-13 06:29:17 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-06-14 16:43:01 -0400 |
commit | 407b584d155be67a9311a62da8d7874f62b987ac (patch) | |
tree | 0a8cb722335d465d6bb3a849a21bb6d073fe6065 /scripts/documentation-file-ref-check | |
parent | a2f405a5269fc7d705926298971dcb5e76054e8a (diff) |
scripts/documentation-file-ref-check: ignore output dir
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 <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/documentation-file-ref-check')
-rwxr-xr-x | scripts/documentation-file-ref-check | 3 |
1 files changed, 3 insertions, 0 deletions
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 (<IN>) { | |||
90 | # Skip this script | 90 | # Skip this script |
91 | next if ($f eq $scriptname); | 91 | next if ($f eq $scriptname); |
92 | 92 | ||
93 | # Ignore the dir where documentation will be built | ||
94 | next if ($ln =~ m,\b(\S*)Documentation/output,); | ||
95 | |||
93 | if ($ln =~ m,\b(\S*)(Documentation/[A-Za-z0-9\_\.\,\~/\*\[\]\?+-]*)(.*),) { | 96 | if ($ln =~ m,\b(\S*)(Documentation/[A-Za-z0-9\_\.\,\~/\*\[\]\?+-]*)(.*),) { |
94 | my $prefix = $1; | 97 | my $prefix = $1; |
95 | my $ref = $2; | 98 | my $ref = $2; |