Throw out *all* absolute pathnames, not matter what they look like.

The filenames we are interested in for Makefile dependencies
are always relative.
This commit is contained in:
Bodo Möller 2001-03-08 12:27:44 +00:00
parent de10f6900d
commit 3b4cfea688

View file

@ -17,8 +17,7 @@ while(<STDIN>) {
$thisfile=$file if defined $file;
next if !defined $deps;
my @deps=split ' ',$deps;
@deps=grep(!/^\/usr\/include/,@deps);
@deps=grep(!/^\/usr\/lib\/gcc-lib/,@deps);
@deps=grep(!/^\//,@deps);
@deps=grep(!/^\\$/,@deps);
push @{$files{$thisfile}},@deps;
}