Lines Matching refs:ref
96 my $ref = $2;
107 $ref =~ s/(txt|rst)\[\d+]$/$1/;
110 $ref =~ s/\].*// if (!($ref =~ m/\[/));
113 $ref =~ s/[\,\.]+$//;
115 my $fulref = "$prefix$ref";
126 next if (grep -e, glob("$ref $fulref"));
132 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
141 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
142 $broken_ref{$ref}++;
158 foreach my $ref (keys %broken_ref) {
159 my $new =$ref;
163 $basedir = $1 if ($ref =~ m,(doc/translations/[^/]+),);
171 if ($ref =~ /devicetree/) {
174 my $new_ref = $ref;
211 print STDERR "ERROR: Didn't find a replacement for $ref\n";
213 print STDERR "WARNING: Won't auto-replace, as found multiple files close to $ref:\n";
221 print "INFO: Replacing $ref to $f\n";
222 foreach my $j (qx(git grep -l $ref)) {
223 qx(sed "s\@$ref\@$f\@g" -i $j);