mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-20 15:46:49 +07:00
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>
This commit is contained in:
parent
be600e5ac7
commit
e1f319fe4d
@ -104,6 +104,12 @@ foreach my $ref (keys %broken_ref) {
|
|||||||
$f=qx(find . -iname $new) if ($new);
|
$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
|
# Wild guess: seek for the same name on another place
|
||||||
if (!$f) {
|
if (!$f) {
|
||||||
$f = qx(find . -iname $new) if ($new);
|
$f = qx(find . -iname $new) if ($new);
|
||||||
|
Loading…
Reference in New Issue
Block a user