diff options
author | Richard Levitte <levitte@openssl.org> | 2001-10-10 08:27:28 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-10-10 08:27:28 +0000 |
commit | 3009e9f9ef196829befec5b96730747bb24dd120 (patch) | |
tree | 6dc150fdce448d633ec52432efba2edf5a473677 /util/clean-depend.pl | |
parent | b30245dae091a20c5c7e4fdcbfebd6853d95156f (diff) | |
download | openssl-3009e9f9ef196829befec5b96730747bb24dd120.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 322bfcc582..6c485d1e2f 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; |