From revision 1.6, 2001-03-08 13:27 bodo:
authorRichard Levitte <levitte@openssl.org>
Fri, 16 Mar 2001 09:46:09 +0000 (09:46 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 16 Mar 2001 09:46:09 +0000 (09:46 +0000)
Throw out *all* absolute pathnames, not matter what they look like.
The filenames we are interested in for Makefile dependencies are
always relative.

util/clean-depend.pl

index af676af751458363e8f6c735be2d97c3615f5916..0193e726fee1733d042fa3494f0d8e841bf460ae 100755 (executable)
@@ -15,8 +15,8 @@ while(<STDIN>) {
     my ($file,$deps)=/^(.*): (.*)$/;
     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{$file}},@deps;
 }