diff options
author | levitte <levitte> | 2001-10-10 08:27:28 +0000 |
---|---|---|
committer | levitte <levitte> | 2001-10-10 08:27:28 +0000 |
commit | 7eadc0e64130c1023c7a3f689bb61e3382ca2309 (patch) | |
tree | 364078f9271408fc8952adbdddd6bd5707d61c16 /util/clean-depend.pl | |
parent | cb77ca720d44be006638dc257e454c474d90ff4c (diff) | |
download | openssl-7eadc0e64130c1023c7a3f689bb61e3382ca2309.tar.gz |
It seems like gcc does canonicalisation of file names. More
specifically, a starting './' is removed. makedepend doesn't do this,
resulting in another possible commit war, so let's fix that by doing a
poor mans canonicalisation of file names that gives the same effect as
doing dependencies through gcc.
Diffstat (limited to 'util/clean-depend.pl')
-rwxr-xr-x | util/clean-depend.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/clean-depend.pl b/util/clean-depend.pl index 322bfcc58..6c485d1e2 100755 --- a/util/clean-depend.pl +++ b/util/clean-depend.pl @@ -34,9 +34,11 @@ foreach $file (sort keys %files) { my $dep; my $origfile=$file; $origfile=~s/\.o$/.c/; + $file=~s/^\.\///; push @{$files{$file}},$origfile; my $prevdep=""; foreach $dep (sort @{$files{$file}}) { + $dep=~s/^\.\///; next if $prevdep eq $dep; # to exterminate duplicates... $prevdep = $dep; $len=0 if $len+length($dep)+1 >= 80; |