diff options
| -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); |
