Lines Matching refs:f
60 my $f = $doc_ref;
63 $f =~ s,.*\<([^\>]+)\>,$1,;
65 if ($f =~ m,^/,) {
66 $f = "$f.rst";
67 $f =~ s,^/,Documentation/,;
69 $f = "$d$f.rst";
72 next if (grep -e, glob("$f"));
88 my $f = $1;
92 next if ($f =~ m,^Next/,);
95 next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/);
98 next if ($f =~ m#/\.#);
101 next if ($f eq $scriptname);
147 if ($f =~ m/tools/) {
148 my $path = $f;
155 if (defined($false_positives{$f})) {
156 next if ($false_positives{$f} eq $fulref);
164 print STDERR "Warning: $f references a file that doesn't exist: $fulref\n";
166 print STDERR "$f: $fulref\n";
187 my $f="";
192 if (!$f) {
195 $f=$new_ref if (-f $new_ref);
198 if (!$f) {
201 $f = qx(find Documentation/devicetree/ -iname "*$search*") if ($search);
202 if (!$f) {
205 $f = qx(find Documentation/devicetree/ -iname "*$search*") if ($search);
211 if (!$f) {
213 $f=qx(find $basedir -iname $new) if ($new);
217 if (!$f) {
219 $f=qx(find $basedir -iname $new) if ($new);
223 if (!$f) {
224 $f = qx(find $basedir -iname $new) if ($new);
227 my @find = split /\s+/, $f;
229 if (!$f) {
238 $f = $find[0];
239 $f =~ s,^./,,;
240 print "INFO: Replacing $ref to $f\n";
242 qx(sed "s\@$ref\@$f\@g" -i $j);