diff options
| author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-06-14 09:14:54 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-06-15 17:10:01 -0400 |
| commit | e1f319fe4d537da79691f1a1da7a20147de33047 (patch) | |
| tree | dd8f4d1e0906fc64c327a00f19b0fb05008cd653 /scripts | |
| parent | be600e5ac79fb5f6c8839d6a48d89fc2b917f0c7 (diff) | |
scripts/documentation-file-ref-check: hint: dash or underline
Sometimes, people use dash instead of underline or vice-versa.
Try to autocorrect it.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/documentation-file-ref-check | 6 |
1 files changed, 6 insertions, 0 deletions
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) { | |||
| 104 | $f=qx(find . -iname $new) if ($new); | 104 | $f=qx(find . -iname $new) if ($new); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | # usual reason for breakage: use dash or underline | ||
| 108 | if (!$f) { | ||
| 109 | $new =~ s/[-_]/[-_]/g; | ||
| 110 | $f=qx(find . -iname $new) if ($new); | ||
| 111 | } | ||
| 112 | |||
| 107 | # Wild guess: seek for the same name on another place | 113 | # Wild guess: seek for the same name on another place |
| 108 | if (!$f) { | 114 | if (!$f) { |
| 109 | $f = qx(find . -iname $new) if ($new); | 115 | $f = qx(find . -iname $new) if ($new); |
