Lines Matching refs:ref
98 my $ref = $2;
109 $ref =~ s/(txt|rst)\[\d+]$/$1/;
112 $ref =~ s/\].*// if (!($ref =~ m/\[/));
115 $ref =~ s/[\,\.]+$//;
117 my $fulref = "$prefix$ref";
134 next if (grep -e, glob("$ref $fulref"));
140 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
149 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
150 $broken_ref{$ref}++;
166 foreach my $ref (keys %broken_ref) {
167 my $new =$ref;
171 $basedir = $1 if ($ref =~ m,(Documentation/translations/[^/]+),);
179 if ($ref =~ /devicetree/) {
182 my $new_ref = $ref;
219 print STDERR "ERROR: Didn't find a replacement for $ref\n";
221 print STDERR "WARNING: Won't auto-replace, as found multiple files close to $ref:\n";
229 print "INFO: Replacing $ref to $f\n";
230 foreach my $j (qx(git grep -l $ref)) {
231 qx(sed "s\@$ref\@$f\@g" -i $j);