Lines Matching refs:ref
105 my $ref = $2;
116 $ref =~ s/(txt|rst)\[\d+]$/$1/;
119 $ref =~ s/\].*// if (!($ref =~ m/\[/));
122 $ref =~ s/[\,\.]+$//;
124 my $fulref = "$prefix$ref";
141 next if (grep -e, glob("$ref $fulref"));
147 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
156 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
157 $broken_ref{$ref}++;
173 foreach my $ref (keys %broken_ref) {
174 my $new =$ref;
178 $basedir = $1 if ($ref =~ m,(Documentation/translations/[^/]+),);
186 if ($ref =~ /devicetree/) {
189 my $new_ref = $ref;
226 print STDERR "ERROR: Didn't find a replacement for $ref\n";
228 print STDERR "WARNING: Won't auto-replace, as found multiple files close to $ref:\n";
236 print "INFO: Replacing $ref to $f\n";
237 foreach my $j (qx(git grep -l $ref)) {
238 qx(sed "s\@$ref\@$f\@g" -i $j);