diff options
author | Richard Levitte <levitte@openssl.org> | 2001-10-10 07:44:54 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-10-10 07:44:54 +0000 |
commit | cb40bdaf579a64dfb527471b7a159968e482ad15 (patch) | |
tree | d5a351a3da497e591e9c18e193e8cd303b3ff709 /util/clean-depend.pl | |
parent | 4b125068916274fc4ffca228b29af2eaee3d65a4 (diff) | |
download | openssl-cb40bdaf579a64dfb527471b7a159968e482ad15.tar.gz |
makedepend sometimes produces duplicates. Remove them.
Diffstat (limited to 'util/clean-depend.pl')
-rwxr-xr-x | util/clean-depend.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/clean-depend.pl b/util/clean-depend.pl index 8e27aaae5e..322bfcc582 100755 --- a/util/clean-depend.pl +++ b/util/clean-depend.pl @@ -35,7 +35,10 @@ foreach $file (sort keys %files) { my $origfile=$file; $origfile=~s/\.o$/.c/; push @{$files{$file}},$origfile; + my $prevdep=""; foreach $dep (sort @{$files{$file}}) { + next if $prevdep eq $dep; # to exterminate duplicates... + $prevdep = $dep; $len=0 if $len+length($dep)+1 >= 80; if($len == 0) { print "\n$file:"; |