Lines Matching refs:ref
49 my $ref = $2;
60 $ref =~ s/(txt|rst)\[\d+]$/$1/;
63 $ref =~ s/\].*// if (!($ref =~ m/\[/));
66 $ref =~ s/[\,\.]+$//;
68 my $fulref = "$prefix$ref";
85 next if (grep -e, glob("$ref $fulref"));
91 next if (grep -e, glob("$path/$ref $path/$fulref"));
95 if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
96 $broken_ref{$ref}++;
109 foreach my $ref (keys %broken_ref) {
110 my $new =$ref;
118 if ($ref =~ /devicetree/) {
149 print STDERR "ERROR: Didn't find a replacement for $ref\n";
151 print STDERR "WARNING: Won't auto-replace, as found multiple files close to $ref:\n";
159 print "INFO: Replacing $ref to $f\n";
160 foreach my $j (qx(git grep -l $ref)) {
161 qx(sed "s\@$ref\@$f\@g" -i $j);