Lines Matching refs:ref
108 my $ref = $2;
119 $ref =~ s/(txt|rst)\[\d+]$/$1/;
122 $ref =~ s/\].*// if (!($ref =~ m/\[/));
125 $ref =~ s/[\,\.]+$//;
127 my $fulref = "$prefix$ref";
144 next if (grep -e, glob("$ref $fulref"));
151 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
160 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
161 $broken_ref{$ref}++;
177 foreach my $ref (keys %broken_ref) {
178 my $new =$ref;
182 $basedir = $1 if ($ref =~ m,(Documentation/translations/[^/]+),);
190 if ($ref =~ /devicetree/) {
193 my $new_ref = $ref;
230 print STDERR "ERROR: Didn't find a replacement for $ref\n";
232 print STDERR "WARNING: Won't auto-replace, as found multiple files close to $ref:\n";
240 print "INFO: Replacing $ref to $f\n";
241 foreach my $j (qx(git grep -l $ref)) {
242 qx(sed "s\@$ref\@$f\@g" -i $j);