makedepend sometimes produces duplicates. Remove them.
This commit is contained in:
parent
4b12506891
commit
cb40bdaf57
@ -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:";
|
||||
|
Loading…
x
Reference in New Issue
Block a user